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

sendRedirect creates wrong location url with absolute url

    XMLWordPrintable

Details

    • Bug
    • Resolution: Obsolete
    • Major
    • None
    • 2.0.15.Final
    • Servlet
    • None

    Description

      When redirecting to absolute url having un-encoded parameter values, HttpServletResponse sendRedirect is creating a wrong URL. Attached war file has sample to reproduce this problem.

      1. Deploy the Redirect.war file
      2. Open the url http://localhost:8080/Redirect/index.jsp
      3. In the form input, enter some text with space in between characters, such as, abc def
      4. The redirected URL is incorrect as shown below

      http://localhost:8080/Redirect/http:/localhost:8080/Redirect/newpage.jsp?inputData=abc def

      The undertow configuration has the following http-listener attributes:

      <http-listener name="default" socket-binding="http" redirect-socket="https" enable-http2="true" max-parameters="10000" url-charset="UTF-8" allow-unescaped-characters-in-url="true"/>

      Attachments

        Activity

          People

            rhn-cservice-bbaranow Bartosz Baranowski
            amritainstitute_kochi Amaldev - (Inactive)
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: