You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2002/03/06 17:20:37 UTC
DO NOT REPLY [Bug 4707] -
HttpServletRequest.getPathInfo() method strips consecutive "/" chars
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4707>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4707
HttpServletRequest.getPathInfo() method strips consecutive "/" chars
------- Additional Comments From chris@shenton.org 2002-03-06 16:20 -------
I've been developing under TDK and its version of getPathInfo() does NOT eat
slashes, so it really surprised me that my webapp broke when we deployed on
Tomcat (without TDK). It's not just PathInfo, but also getRequestURL() and
getRequestURI().
The request:
http://localhost:58080/sna/servlet/gov.nasa.hq.sna.intranetbroker.SlashTest/oj///simpson
results in the following from my dorky test servlet:
RequestURL:
http://localhost:58080/sna/servlet/gov.nasa.hq.sna.intranetbroker.SlashTest/oj/simpson
RequestURI: /sna/servlet/gov.nasa.hq.sna.intranetbroker.SlashTest/oj/simpson
PathInfo: /oj/simpson
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>