[xwiki-users] Slash in pagename
Hi, I use latest XWiki with Tomcat 5 and MySQL 5. When I create page with slash, like "test/test", nothing happens -- I got a blank browser page. Maybe I forgot to add some options to Xwiki or Tomcat? Thanks in advance.
Hi! Donnie Lee wrote:
Hi,
I use latest XWiki with Tomcat 5 and MySQL 5. When I create page with slash, like "test/test", nothing happens -- I got a blank browser page. Maybe I forgot to add some options to Xwiki or Tomcat? Thanks in advance.
It sound a bit strange to me to use a slash in a document name. The slash is used in URLs, so I guess it is not allowed in documents' names. Anyway, if you are using, for instance, http://localhost:8080/xwiki/bin/view/test/test, you must be told... "Notice.The requested document could not be found." and, if you are registered, you must be offered with a link to create it. It will create both, test document and test space. HTH, Ricardo -- Ricardo RodrÃguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems
On 12/09/2010 06:37 AM, Donnie Lee wrote:
Hi,
I use latest XWiki with Tomcat 5 and MySQL 5. When I create page with slash, like "test/test", nothing happens -- I got a blank browser page. Maybe I forgot to add some options to Xwiki or Tomcat? Thanks in advance.
http://tomcat.apache.org/security-6.html#Fixed_in_Apache_Tomcat_6.0.10 Tomcat completely freaks out when there's a %2F in URLs, and it's not something that can be changed in XWiki. You can configure Tomcat to allow this, by enabling org.apache.tomcat.util.buf.UDecoder.ALLOW_ENCODED_SLASH -- Sergiu Dumitriu http://purl.org/net/sergiu/
On Dec 9, 2010, at 3:20 PM, Sergiu Dumitriu wrote:
On 12/09/2010 06:37 AM, Donnie Lee wrote:
Hi,
I use latest XWiki with Tomcat 5 and MySQL 5. When I create page with slash, like "test/test", nothing happens -- I got a blank browser page. Maybe I forgot to add some options to Xwiki or Tomcat? Thanks in advance.
http://tomcat.apache.org/security-6.html#Fixed_in_Apache_Tomcat_6.0.10
Tomcat completely freaks out when there's a %2F in URLs, and it's not something that can be changed in XWiki.
You can configure Tomcat to allow this, by enabling org.apache.tomcat.util.buf.UDecoder.ALLOW_ENCODED_SLASH
Added to http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationTomcat Thanks -Vincent PS: See http://dev.xwiki.org/xwiki/bin/view/Community/Contributing#HStrategiesforans... ;)
participants (4)
-
Donnie Lee -
Ricardo Rodriguez [eBioTIC.] -
Sergiu Dumitriu -
Vincent Massol