Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-5388

Stack trace displayed when accessing a sub-wiki of a path based wiki farm

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Major
    • None
    • 2.3.2, 2.4.3, 2.4.4
    • Other
    • None
    • XEM 2.3.2 or XEM 2.4.4, Tomcat 5.5.20 or 6.0.29, MySQL 5.0.82, Firefox 3.6
    • Unknown

    Description

      In a wiki farm (XEM) configured to use URL path (xwiki.virtual.usepath=1), if you access a subwiki named "welcome" (for example) using :
      http://<server>/xwiki/wiki/welcome
      you obtain a page with the following message :
      Error number 4001 in 4: Error while parsing velocity page /templates/xwikivars.vm Wrapped Exception: Failed to evaluate content with id [/templates/xwikivars.vm]

      This message is followed by a "Note page" with a stack trace :
      java.lang.StringIndexOutOfBoundsException: String index out of range: -1
      at java.lang.String.substring(Unknown Source)
      at java.lang.String.substring(Unknown Source)
      at com.xpn.xwiki.XWiki.getDocumentReference(XWiki.java:5084)
      at com.xpn.xwiki.XWiki.prepareDocuments(XWiki.java:5143)
      at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:189)
      at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:115)
      ....

      If you use http://<server>/xwiki/wiki/welcome/ (with a final slash), all is right. The main page of the welcome wiki is displayed.

      Attachments

        Issue Links

          Activity

            People

              sdumitriu Sergiu Dumitriu
              le.genie.logiciel Maxime Mathieu
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: