shiro-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lhazlew...@apache.org
Subject svn commit: r814881 - /incubator/shiro/trunk/web/src/main/java/org/apache/shiro/web/filter/mgt/DefaultFilterChainManager.java
Date Mon, 14 Sep 2009 22:07:34 GMT
Author: lhazlewood
Date: Mon Sep 14 22:07:34 2009
New Revision: 814881

URL: http://svn.apache.org/viewvc?rev=814881&view=rev
Log:
fixed an issue where the filter name was not being set correctly

Modified:
    incubator/shiro/trunk/web/src/main/java/org/apache/shiro/web/filter/mgt/DefaultFilterChainManager.java

Modified: incubator/shiro/trunk/web/src/main/java/org/apache/shiro/web/filter/mgt/DefaultFilterChainManager.java
URL: http://svn.apache.org/viewvc/incubator/shiro/trunk/web/src/main/java/org/apache/shiro/web/filter/mgt/DefaultFilterChainManager.java?rev=814881&r1=814880&r2=814881&view=diff
==============================================================================
--- incubator/shiro/trunk/web/src/main/java/org/apache/shiro/web/filter/mgt/DefaultFilterChainManager.java
(original)
+++ incubator/shiro/trunk/web/src/main/java/org/apache/shiro/web/filter/mgt/DefaultFilterChainManager.java
Mon Sep 14 22:07:34 2009
@@ -20,6 +20,7 @@
 
 import org.apache.shiro.config.ConfigurationException;
 import org.apache.shiro.util.CollectionUtils;
+import org.apache.shiro.util.Nameable;
 import org.apache.shiro.util.StringUtils;
 import static org.apache.shiro.util.StringUtils.split;
 import org.apache.shiro.web.filter.PathConfigProcessor;
@@ -160,6 +161,9 @@
     protected void addFilter(String name, Filter filter, boolean init, boolean overwrite)
{
         Filter existing = getFilter(name);
         if (existing == null || overwrite) {
+            if (filter instanceof Nameable) {
+                ((Nameable) filter).setName(name);
+            }
             if (init) {
                 initFilter(filter);
             }



Mime
View raw message