https://issues.apache.org/bugzilla/show_bug.cgi?id=44803
Summary: Path info is decoded too soon
Product: Apache httpd-2
Version: 2.2.8
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P2
Component: mod_proxy
AssignedTo: [email protected]
ReportedBy: [EMAIL PROTECTED]
For the request:
http://myhost/mywebapp/servlet/myservlet/pathcomp1/pathcomp2/foo%3Bbar?spaz=bot
The expected result of HttpServletRequest.getPathInfo() is
/pathcomp1/pathcomp2/foo%3Bbar
The actual result in Tomcat 6.0.16 when using Apache 2.2.8 and mod_proxy_ajp,
is:
/pathcomp1/pathcomp2/foo
Also note that the %3B is already converted into a ";" character in the results
of
HttpServletRequest.getRequestURI(), which is also quite incorrect. Essentially
the request URI is being decoded too early.
mod_jk provided options like "JkOptions +ForwardURIEscaped" (and
+ForwardURICompatUnparsed) to avoid this issue. mod_proxy_ajp provides no such
option. This is a *very* serious omission in that it makes it impossible to
get correct behavior for this use case in Tomcat and other servlet engines when
fronted by mod_proxy_ajp.
I'd very much appreciate a patch for this (and would test it, of course).
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]