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

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

XMLWordPrintable

    • +
    • Workaround Exists
    • 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/

      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

            rhn-support-rmartinc Ricardo Martin Camarero
            rhn-support-rmartinc Ricardo Martin Camarero
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: