Details
-
Improvement
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
None
-
None
-
None
Description
org.apache.shiro.spring.web.ShiroFilterFactoryBean has a method, setFilterChainDefinitionMap which accepts Map interface objects. Most Map interface objects have no guaranteed order, but the filter chain definitions rely heavily on specific ordering for the application of rules.
For example,
Map<String, String> filterChainDefs = new HashMap<String, String>(); filterChainDefs.put("/s/test", "authc"); filterChainDefs.put("/s/**", "anon"); shiroFilterFactoryBean.setFilterChainDefinitionMap(filterChainDefs);
In this example, this structure is acceptable to the setter on shiroFilterFactoryBean, but will non-deterministically allow or deny access to /s/test between server restarts.