-
Bug
-
Resolution: Fixed
-
Major
-
5.2
-
None
in info.magnolia.cms.filters.ContentTypeFilter line 98
String requestURI = URI.create(ServletUtil.getRequestUri(request)).normalize().getPath();
aggregationState.setCurrentURI(URLDecoder.decode(requestURI, characterEncoding));
the requestURI is decoded twice and this generate error in case of % in the URI:
- ServletUtil.getRequestUri(request)).normalize() --> .../image%25name.. (%25 is the encoded value of %)
- .getPath() decode the URI --> .../image%name...
- performing a URLDecoder.decode(requestURI, characterEncoding) will try to decode the already decoded string -->
java.lang.IllegalArgumentException: URLDecoder: Illegal hex characters in escape (%) pattern - For input string: "wi" at java.net.URLDecoder.decode(URLDecoder.java:173) at info.magnolia.cms.filters.ContentTypeFilter.doFilter(ContentTypeFilter.java:100) ...
Acceptance criteria
- is causing
-
MGNLDAM-485 Links to documents with % in the file name are not generated correctly
- Closed