Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-16826

[GSS](7.2.z) UNDERTOW-1567 - Redirect to absolute URL with special characters broken

    XMLWordPrintable

Details

    • +
    • Workaround Exists
    • Hide

      Encode any special character in the redirect url

      Show
      Encode any special character in the redirect url
    • Hide
         response.sendRedirect("http://test.com/foobar?test={abc}");
      
      Show
      response.sendRedirect( "http: //test.com/foobar?test={abc}" );

    Description

      After upgrading to EAP 7.2, redirects to absolute URLs are broken if containing special characters (such as #, {, }). This did not occur with EAP 6 or EAP 7.1 and earlier. But with 7.2, a redirect call like this:

         response.sendRedirect("http://test.com/foobar?test={abc}");
      

      A bad redirect location is returned like so:

      Location: http://localhost:8080/app/http:/test.com/foobar?test={abc}
      

      Attachments

        Issue Links

          Activity

            People

              thofman Tomas Hofman
              rhn-support-aogburn Aaron Ogburn
              Votes:
              1 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: