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/02/15 05:52:28 UTC
DO NOT REPLY [Bug 6480] New: -
HttpServletRequest.getPathTranslated() returns different results on repeated actions
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=6480>.
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=6480
HttpServletRequest.getPathTranslated() returns different results on repeated actions
Summary: HttpServletRequest.getPathTranslated() returns different
results on repeated actions
Product: Tomcat 4
Version: 4.0 Final
Platform: PC
OS/Version: Windows NT/2K
Status: NEW
Severity: Normal
Priority: Other
Component: Catalina
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: matteyamar@msn.com
Hi there,
I have created a HTML file which uses GET method and the Query String looks
like this /servlet/hello/empty.txt . A servlet aliased hello takes the request
and when I try to print the HttpServletRequest.getPathInfo() and
HttpServletRequest.getPathTranslated() it prints
Path Info ==>> /empty.txt
Translated Path Info ==>> D:\Program Files\Apache Tomcat 4.0
\webapps\ROOT\hello\empty.txt
which is correct and when I do this again for a second attempt I get a
different Output
Path Info ==>> /empty.txt
Translated Path Info ==>> D:\Program Files\Apache Tomcat 4.0
\webapps\ROOT\empty.txt
I don't understand why it gives me correct path the very first time and
different wrong path the next time I do the same. I have the directory
structure set up under ROOT\hello\empty.txt. I am not sure If I am doing
something wrong or if this a BUG.
If you need more info I can send the files under my ROOT directories.
thanks
Amar.
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>