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

HttpServletRequestImpl#getServletPath() and getPathInfo() returns non-decoded value after AsyncContextImpl#dispatch()

    XMLWordPrintable

Details

    Description

      Example URL : http://localhost/myapp/files/%E6%9B%B8%E9%A1%9E.pdf

      Call io.undertow.servlet.spec.AsyncContextImpl#dispatch()
      or
      Call io.undertow.servlet.spec.AsyncContextImpl#dispatch(String)
      e.g. dispatch("/files/%E6%9B%B8%E9%A1%9E.pdf")

      Servlet filters receive HttpServletRequestImpl object from the caller, and its HttpServletRequest#getPathInfo() returns "/%E6%9B%B8%E9%A1%9E.pdf".

      HttpServletRequest#getServletPath() and HttpServletRequest#getPathInfo() should return decoded string. (e.g. "/書類.pdf")

      Attachments

        1. demo-result.txt
          7 kB
        2. demo.zip
          58 kB

        Issue Links

          Activity

            People

              rhn-cservice-bbaranow Bartosz Baranowski
              kzmiz Kazmi Iwasa (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: