Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
When the usermanager servlets receive an illegal or invalid :redirect parameter it should return a status code of 422 instead of 200 because the request was not fully successful.
Currently, the illegal :redirect parameter value is detected and a warning is logged. The request continues to be processed without the redirect occurring. The client has no indication that something went wrong without reviewing the server logs.
For example:
Illegal redirect
curl -F displayName=updated -F :redirect=https://sling.apache.org http://localhost:8080/system/userManager/user/testUser1.update.html
invalid redirect
curl -F displayName=updated -F :redirect=https:// http://localhost:8080/system/userManager/user/testUser1.update.html
Attachments
Issue Links
- links to