Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-10456

adjust HTTP status code for invalid :redirect value for usermanager post requests

    XMLWordPrintableJSON

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

          Activity

            People

              enorman Eric Norman
              enorman Eric Norman
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h
                  1h