Handle Empty Role
Closes gh-13079
This commit is contained in:
@@ -266,4 +266,9 @@ public class AuthorityAuthorizationManagerTests {
|
||||
assertThat(manager.check(authentication, object).isGranted()).isTrue();
|
||||
}
|
||||
|
||||
// gh-13079
|
||||
@Test
|
||||
void hasAnyRoleWhenEmptyRolePrefixThenNoException() {
|
||||
AuthorityAuthorizationManager.hasAnyRole("", new String[] { "USER" });
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user