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

    • +
    • 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}" );

      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}
      

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

                Created:
                Updated:
                Resolved: