Hello to all of you,This bug was introduced by the latest fix, that was made to correct the problem in tomcat when it didn't have a ROOT context.This patch gives getLongestPrefixMatch() a chance to return the ROOT context.Cheers,Dimitris Dinodimos
Index: PrefixMapper.java =================================================================== RCS file: /home/cvspublic/jakarta-tomcat/src/share/org/apache/tomcat/util/PrefixMapper.java,v retrieving revision 1.3.2.1 diff -u -r1.3.2.1 PrefixMapper.java --- PrefixMapper.java 2001/01/04 21:28:33 1.3.2.1 +++ PrefixMapper.java 2001/01/12 17:25:20 @@ -214,12 +214,14 @@ container=myMap.mapCache.get(path); if( container!=null ) return container; } - - while (s.length() > 0) { + + while (s.length() >= 0) { //if(debug>8) context.log( "Prefix: " + s ); container = myMap.prefixMappedServlets.get(s); if (container == null) { + if (s.length() == 0) + return null; s=URLUtil.removeLast( s ); } else { if( myMap.mapCacheEnabled ) { @@ -228,7 +230,8 @@ } return container; } - } + } + return container; }
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]