There is 1 update.
 
 
XWiki Platform / cid:jira-generated-image-avatar-324c8dd3-4c0c-4139-9cfe-8b44aa3a1794 XWIKI-19167 Open

Make XWiki URIs compatible with Servlet 6 specifications

 
View issue   Â·   Add comment
 

1 update

 
cid:jira-generated-image-avatar-c1bce7bb-c853-409c-8eb1-db59b5f9affa Changes by Thomas Mortagne on 25/Nov/24 09:52
 
Description: Application servers like Jetty and Tomcat started forbidding some special character in the URIs path for a while (leading us to find configuration for them) but the servlet 6 specifications actually made those protections (and more) official. It also made it much more complex to configure Jetty and Tomcat to allow those characters…

Here are more details on what exactly is forbidden in the specification: https://github.com/jakartaee/servlet/blob/6.0.0-RELEASE/spec/src/main/asciidoc/servlet-spec-body.adoc#352-uri-path-canonicalization.

So if we want to be good Servlet citizen we need to stop having this kind of URI.

There are two ways:
* pass those characters through URL parameters instead of path
* forbid those characters on XWiki side too

There is no central place we can easily fix to fix everything, many totally different features in XWiki (and in Contrib extensions) have their own format of URL.

The goal of this issue is to aggregate all those specific features which need to be fixed to have an idea of where we stand in general on this subject:

* legacy actions ({{/bin/<action>/}}) entities URLs
* {{/rest/}} resources URLs
** entities rest resources
** job rest resources
** TODO: list missing types of
REST resources
* resource reference handlers
** TODO: list missing types of
resources resource handlers