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

    Details

    • Target Release:
    • Steps to Reproduce:
      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/
    • Workaround Description:
      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
    • QE Test Coverage:
      +

      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

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  rhn-support-rmartinc Ricardo Martin Camarero
                  Reporter:
                  rhn-support-rhsilva Rhuan Rocha
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: