1
0
mirror of synced 2026-08-04 01:07:02 +00:00

Fix infinite loop in role hierarchy resolving

Issue: gh-7035
This commit is contained in:
Karel Maxa
2019-07-11 15:43:26 +02:00
parent 2d36062846
commit d3eaef66fc
2 changed files with 12 additions and 20 deletions
@@ -168,6 +168,12 @@ public class RoleHierarchyImplTests {
}
catch (CycleInRoleHierarchyException e) {
}
try {
roleHierarchyImpl.setHierarchy("ROLE_C > ROLE_B\nROLE_B > ROLE_A\nROLE_A > ROLE_B");
fail("Cycle in role hierarchy was not detected!");
} catch (CycleInRoleHierarchyException e) {
}
}
@Test