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=10544>.
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=10544

crossContext for servlets not working





------- Additional Comments From [EMAIL PROTECTED]  2003-01-16 12:17 -------
Hello,

I found the bug:
src/share/org/apache/catalina/core/ApplicationContext.java line 445 (in tomcat 
4.1.18):
        if ((contextPath.length() > 0) && (uri.startsWith(contextPath))) {
            return (this);
        }
since the root context is "/" every uri starts with the contextPath and hence 
the root context is returned again.
To fix it the 0 has to be replaced with 1.
I attached a patch.

Christian

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to