Details
-
Bug
-
Resolution: Duplicate
-
Major
-
None
-
2.3.2, 2.4.3, 2.4.4
-
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
- duplicates
-
XWIKI-6828 Forgetting the '/' after the subwiki name displays a 4001 error (wrapped exception)
- Closed