Uploaded image for project: 'Undertow'
  1. Undertow
  2. UNDERTOW-1567

Redirect to absolute URL with special characters broken

XMLWordPrintable

    • Hide
         response.sendRedirect("http://test.com/foobar?test={abc}");
      
      Show
      response.sendRedirect( "http: //test.com/foobar?test={abc}" );
    • Workaround Exists
    • Hide

      Encode any special character in the redirect url

      Show
      Encode any special character in the redirect url

      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
              thofman Tomas Hofman
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: