shiro-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bdem...@apache.org
Subject shiro git commit: Fix for SHIRO-621: REST filter bypassing matched path
Date Wed, 02 May 2018 15:30:06 GMT
Repository: shiro
Updated Branches:
  refs/heads/master 738edaede -> cda11b5f6


Fix for SHIRO-621: REST filter bypassing matched path

Fixes: SHIRO-621
Fixes: #79


Project: http://git-wip-us.apache.org/repos/asf/shiro/repo
Commit: http://git-wip-us.apache.org/repos/asf/shiro/commit/cda11b5f
Tree: http://git-wip-us.apache.org/repos/asf/shiro/tree/cda11b5f
Diff: http://git-wip-us.apache.org/repos/asf/shiro/diff/cda11b5f

Branch: refs/heads/master
Commit: cda11b5f6227ec1731a4fa4f014c0a7ddd9ed45c
Parents: 738edae
Author: Ittiam Insite <admin@ittiaminsite.com>
Authored: Mon Feb 26 16:16:54 2018 +0530
Committer: Brian Demers <bdemers@apache.org>
Committed: Wed May 2 11:22:38 2018 -0400

----------------------------------------------------------------------
 .../src/main/java/org/apache/shiro/guice/web/ShiroWebModule.java  | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/shiro/blob/cda11b5f/support/guice/src/main/java/org/apache/shiro/guice/web/ShiroWebModule.java
----------------------------------------------------------------------
diff --git a/support/guice/src/main/java/org/apache/shiro/guice/web/ShiroWebModule.java b/support/guice/src/main/java/org/apache/shiro/guice/web/ShiroWebModule.java
index ea389e2..aac1394 100644
--- a/support/guice/src/main/java/org/apache/shiro/guice/web/ShiroWebModule.java
+++ b/support/guice/src/main/java/org/apache/shiro/guice/web/ShiroWebModule.java
@@ -158,7 +158,8 @@ public abstract class ShiroWebModule extends ShiroModule {
 
                 // initialize key in filterToPathToConfig, if it doesn't exist
                 if (filterToPathToConfig.get(key) == null) {
-                    filterToPathToConfig.put((key), new HashMap<String, String>());
+                	// Fix for SHIRO-621: REST filter bypassing matched path
+                    filterToPathToConfig.put((key), new LinkedHashMap<String, String>());
                 }
                 // now set the value
                 filterToPathToConfig.get(key).put(path, config);


Mime
View raw message