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

SlingPostServlet is not encoding redirect URLs

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Servlets Post 2.1.2
    • Servlets Post 2.2.0
    • Servlets
    • 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.

      Attachments

        1. new-redirect-integration-test.patch
          1 kB
          James Phillpotts
        2. SLING-2543-integration-tests-fix.patch
          11 kB
          James Phillpotts

        Activity

          People

            cziegeler Carsten Ziegeler
            mrpotes James Phillpotts
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: