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

[GSS] (7.2.z) UNDERTOW-1719 - getRequestURI returning a wrong path when URL uses semicolon

    XMLWordPrintable

Details

    • +
    • Hide

      Remove the slash from the end of URL.

      http://{HOST:

      {PORT}

      /samplerequesturi-1.0-SNAPSHOT/test/testuri;start=1

      Show
      Remove the slash from the end of URL. http://{HOST: {PORT} /samplerequesturi-1.0-SNAPSHOT/test/testuri;start=1
    • Hide
      1. Deploy the samplerequesturi in the EAP 7.2.8
      2. send a HTTP GET request to http://{HOST: {PORT}

        /samplerequesturi-1.0-SNAPSHOT/test/testuri;start=1/

      It should return /samplerequesturi-1.0-SNAPSHOT/test/testuri;start=1/ but is returning /testuri;start=1/

      Show
      Deploy the samplerequesturi in the EAP 7.2.8 send a HTTP GET request to http://{HOST: {PORT} /samplerequesturi-1.0-SNAPSHOT/test/testuri;start=1/ It should return /samplerequesturi-1.0-SNAPSHOT/test/testuri;start=1/ but is returning /testuri;start=1/

    Description

      The HttpServletRequest.getRequestURI() returns the wrong value when the URL uses a semicolon to define path parameter and the end of URL is a slash.

      I'm attaching a simple reproducer

      Attachments

        Issue Links

          Activity

            People

              rhn-support-rmartinc Ricardo Martin Camarero
              rhn-support-rhsilva Rhuan Rocha (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: