ASF Bugzilla – Full Text Bug Listing
|Summary:||Can't use '*' for web.xml filter-mapping's servlet-name or url-mapping|
|Product:||Tomcat 6||Reporter:||Sean Owen <srowen>|
|Component:||Catalina||Assignee:||Tomcat Developers Mailing List <dev>|
Description Sean Owen 2007-06-17 11:06:35 UTC
Change 504726 to org.apache.catalina.deploy.FilterMap attempts to add support for '*' in web.xml filter- mapping servlet-name and url-mapping elements (http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/catalina/deploy/FilterMap.java? r1=467222&r2=504726). However it does not seem to work as a later validation step fails at about line 2156 in StandardContext. This code looks at the size of "servletName" and "urlPatterns" arrays from the FilterMap object. Since '*' doesn't get added as an element of these arrays, and is handled specially, this check will fail if no other url-mapping or servlet-name was specified. I assume the fix is just to take account of the matchAllServletNames and matchAllUrlPatterns flags too in this check.