-
Bug
-
Resolution: Outdated
-
Neutral
-
None
-
None
-
None
Steps to reproduce
- Upload an asset with a white space on its filename
- Create a component which retrieves the asset using damfn.getAsset
- Use the component on a page and check that, tho the image is displayed, the error
ERROR info.magnolia.cms.security.CsrfTokenSecurityFilter: An error occurred while trying to ASCII encode the request servlet path /dam/jcr:ae3c0301-d6c3-467d-84ac-28f7ac3be810/images space.jpeg
java.net.URISyntaxException: Illegal character in path at index 52: /dam/jcr:ae3c0301-d6c3-467d-84ac-28f7ac3be810/images space.jpeg
is displayed on the log.
Expected results
No error is thrown
Actual results
Image is displayed but error is printed
Workaround
Customize CsrfTokenSecurityFilter class to suppress white spaces on generateCookie method
Development notes
It happens only for Magnolia 6.2.12 when the generateCookie method was introduced.
Acceptance criteria
- duplicates
-
MAGNOLIA-8162 Image URI with spaces cause CsrfTokenSecurityFilter#generateCookie to fail
- Closed