The new behavior is as following:
When defining a security constraint for "/foo/*", matches resource "/foo" and "/foo/whatever" but not "/foo.jsp"
 
Cheers,
Dimitris Dinodimos
Index: AccessInterceptor.java
===================================================================
RCS file: 
/home/cvspublic/jakarta-tomcat/src/share/org/apache/tomcat/request/Attic/AccessInterceptor.java,v
retrieving revision 1.12.2.4
diff -u -r1.12.2.4 AccessInterceptor.java
--- AccessInterceptor.java      2000/08/24 21:50:51     1.12.2.4
+++ AccessInterceptor.java      2001/01/29 20:10:37
@@ -321,7 +321,9 @@
        
        switch( ct.getMapType() ) {
        case Container.PREFIX_MAP:
-           return path.startsWith( ctPath.substring(0, ctPathL - 2  ));
+           if (path.equals( ctPath.substring(0, ctPathL - 2  )))
+               return true;
+           return path.startsWith( ctPath.substring(0, ctPathL - 1  ));
        case Container.EXTENSION_MAP:
            return ctPath.substring( 1 ).equals( URLUtil.getExtension( path ));
        case Container.PATH_MAP:

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to