Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Servlets Post 2.1.2
-
None
Description
According to the JavaEE documentation for HttpServletResponse.encodeRedirectURL, "All URLs sent to the HttpServletResponse.sendRedirect method should be run through this method."
The SlingPostServlet isn't doing this, and so if you try and redirect to a node that contains special characters in the name, the redirect URL is incorrect.
e.g. A post request containing :name of Друга and :redirect of *.html gets a redirect URL of ?????.html rather than %D0%94%D1%80%D1%83%D0%B3%D0%B0.html as would be expected.