Bug 42683

Summary: Can't use '*' for web.xml filter-mapping's servlet-name or url-mapping
Product: Tomcat 6 Reporter: Sean Owen <srowen>
Component: CatalinaAssignee: Tomcat Developers Mailing List <dev>
Severity: normal    
Priority: P2    
Version: 6.0.11   
Target Milestone: default   
Hardware: All   
OS: All   

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 
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.
Comment 1 Mark Thomas 2008-11-03 06:29:12 UTC

*** This bug has been marked as a duplicate of bug 43338 ***