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=13040>. 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=13040 can't retrieve external context who's uri is a sub-dir of current context ------- Additional Comments From [EMAIL PROTECTED] 2002-10-24 09:33 ------- That doesn't fix it properly. To trigger the optimisation you would need to send in the uri "/store/" to get a match. Agreed that if we can ditch handling the "/store/common" uri, we could make this work much easier. --- ApplicationContext.java-2002-10-21 Mon Sep 23 11:23:16 2002 +++ ApplicationContext.java Thu Oct 24 10:30:56 2002 @@ -439,12 +439,13 @@ return (null); // Return the current context if requested - String contextPath = context.getPath(); - if (!contextPath.endsWith("/")) - contextPath = contextPath + "/"; - if ((contextPath.length() > 0) && (uri.startsWith(contextPath))) { - return (this); - } + String contextPath = context.getPath(); + if ( contextPath.equals( "" ) && uri.equals( "/" ) || + !contextPath.equals( "" ) && uri.equals( contextPath ) ) { + return (this); + } + + System.out.println( context.getCrossContext() ); // Return other contexts only if allowed if (!context.getCrossContext()) Martin Algesten -- To unsubscribe, e-mail: <mailto:tomcat-dev-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:tomcat-dev-help@;jakarta.apache.org>