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

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

XMLWordPrintable

      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")

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

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

                Created:
                Updated:
                Resolved: