[Solved] : Invalid URI: noSlash

Hello,
Wiki content was created in 8.x version (tomcat/Mysql), and that content was recently moved to latest stable version (9.11.4) using xar export/import into another server (tomcat/HSQL).

In 8.x version, pages were created with page names containing “/” characters, which I cannot access anymore in 9.11.4 with that message displayed :
HTTP 400 – Bad Request
message Invalid URI: noSlash

I can’t access to the page nor delete them.
How can I delete those pages ?
Thanks in advance.

This kind of issue is generally related to Tomcat more that XWiki. You probably enabled \ support in your previous setup (disabled by default in Tomcat) and forgot to do it in the new one.

See http://www.xwiki.org/xwiki/bin/view/Documentation/AdminGuide/Installation/InstallationWAR/InstallationTomcat/#HAllowing222F22and225C22inpagenames for more details about slash support in Tomcat.

Thanks a lot, you’re right! I missed that information during installation process.
Perfect :slight_smile:

For people that just want to remove the pages with a slash in their names, please check out this great snippet created by Anca Luca.

Delete page programmatically