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

    Details

    • Target Release:
    • Steps to Reproduce:
      Hide
         response.sendRedirect("http://test.com/foobar?test={abc}");
      
      Show
      response.sendRedirect( "http: //test.com/foobar?test={abc}" );
    • Workaround:
      Workaround Exists
    • Workaround Description:
      Hide

      Encode any special character in the redirect url

      Show
      Encode any special character in the redirect url
    • QE Test Coverage:
      +

      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}
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  thofman Tomas Hofman
                  Reporter:
                  aogburn Aaron Ogburn
                • Votes:
                  1 Vote for this issue
                  Watchers:
                  9 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: