tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kkoli...@apache.org
Subject svn commit: r939001 - /tomcat/trunk/java/org/apache/catalina/core/ApplicationFilterRegistration.java
Date Wed, 28 Apr 2010 16:21:32 GMT
Author: kkolinko
Date: Wed Apr 28 16:21:32 2010
New Revision: 939001

URL: http://svn.apache.org/viewvc?rev=939001&view=rev
Log:
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=49207
FilterMap#filterName was null when it was configured dynamically with addMappingForUrlPatterns()
Patch provided by Pid

Modified:
    tomcat/trunk/java/org/apache/catalina/core/ApplicationFilterRegistration.java

Modified: tomcat/trunk/java/org/apache/catalina/core/ApplicationFilterRegistration.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/core/ApplicationFilterRegistration.java?rev=939001&r1=939000&r2=939001&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/core/ApplicationFilterRegistration.java (original)
+++ tomcat/trunk/java/org/apache/catalina/core/ApplicationFilterRegistration.java Wed Apr
28 16:21:32 2010
@@ -86,7 +86,9 @@ public class ApplicationFilterRegistrati
             String... urlPatterns) {
 
         FilterMap filterMap = new FilterMap();
-        
+
+        filterMap.setFilterName(filterDef.getFilterName());
+
         if (dispatcherTypes != null) {
             for (DispatcherType dispatcherType : dispatcherTypes) {
                 filterMap.setDispatcher(dispatcherType.name());



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message