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
.mvcMatchers("/collection/{slug}/estimation").hasAuthority("ADD_SERIES_PRICE") should always give an access to a user with ADD_SERIES_PRICE authority.
But I see that the user has access to one page and doesn't have to another:
URL
have access?
/collection/admin/estimation
Yes
/collection/paid/estimation
No
Actual Behavior
User with permission doesn't have access to a page whilst this page matches the pattern.
Expected Behavior
User with permission should have access to a page that matches the pattern.
Note that the behavior is correct when URL-pattern in the rule doesn't have path variables. For instance: .mvcMatchers("/collection/estimation").hasAuthority("ADD_SERIES_PRICE")
works as expected.
Summary
.mvcMatchers("/collection/{slug}/estimation").hasAuthority("ADD_SERIES_PRICE")
should always give an access to a user withADD_SERIES_PRICE
authority.But I see that the user has access to one page and doesn't have to another:
Actual Behavior
User with permission doesn't have access to a page whilst this page matches the pattern.
Expected Behavior
User with permission should have access to a page that matches the pattern.
Note that the behavior is correct when URL-pattern in the rule doesn't have path variables. For instance:
.mvcMatchers("/collection/estimation").hasAuthority("ADD_SERIES_PRICE")
works as expected.
Configuration
See https://github.com/php-coder/mystamps/blob/bc3fe55ea8748c0231f45e6f403419e6b0a02df8/src/main/java/ru/mystamps/web/support/spring/security/SecurityConfig.java#L71-L132
Version
Sample
Steps to reproduce
The text was updated successfully, but these errors were encountered: