You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
shiroweb.urls is a map, which means there's no way to hint Shiro in which order to perform path matching. This is effectively a show-stopper. Obvious fix would be to change this property to be a list. Or maybe some additional re-ordering of the key set can be done internally before filter mapping is passed to Shiro.
The text was updated successfully, but these errors were encountered:
Just realized that YAML maps are deserialized into LinkedHashMaps by Jackson. So the ordering of map iterators is stable. Also if there are no contributions from multiple sources, the ordering will match exactly the ordering in YAML.
Here is a possible scheme for explicit ordering (e.g. in override maps) using optional references to other entries:
shiroweb:
urls:
# traditional default-ordered entry"/a/**": anon# explicit relative ordering. Refers to a key from another YAML"/b/**":chain: anonbefore: "/**"
shiroweb.urls
is a map, which means there's no way to hint Shiro in which order to perform path matching. This is effectively a show-stopper. Obvious fix would be to change this property to be a list. Or maybe some additional re-ordering of the key set can be done internally before filter mapping is passed to Shiro.The text was updated successfully, but these errors were encountered: