You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Eckard Buchner <eb...@tonbeller.com> on 2000/03/27 10:16:35 UTC
ServletRequest getPathTranslated() seems to ignore virt. directories (contexts)
Hi,
in server.xml I added a context like
<Context path="/vd" docBase="c:/temp" debug="0" reloadable="true" >
then the URL http://localhost:8080/vd returns a listing of c:\temp
Problem is, http://localhost:8080/servlet/SnoopServlet/vd
gets the wrong Path-Info:
Path Trans: ...\jakarta-tomcat\webapps\ROOT\vd
NOT c:\temp!
Bug?
Thank you
Eckard Buchner
Re: ServletRequest getPathTranslated() seems to ignore virt. directories
(contexts)
Posted by Costin Manolache <Co...@eng.sun.com>.
Eckard Buchner wrote:
> Hi,
> in server.xml I added a context like
>
> <Context path="/vd" docBase="c:/temp" debug="0" reloadable="true" >
>
> then the URL http://localhost:8080/vd returns a listing of c:\temp
>
> Problem is, http://localhost:8080/servlet/SnoopServlet/vd
> gets the wrong Path-Info:
>
> Path Trans: ...\jakarta-tomcat\webapps\ROOT\vd
>
> NOT c:\temp!
>
> Bug?
Yes, please add it to bugzilla.
Costin