Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

javax.jcr.nodetype.ConstraintViolationException: Cyclic group membership detected for group '...' #447

Open
kwin opened this issue Apr 2, 2020 · 0 comments
Assignees

Comments

@kwin
Copy link
Member

kwin commented Apr 2, 2020

As the check for cyclic group membership happens when Authorizable.addMember(...) is called (and not only after commit()) the order of addMember(...) and removeMember(...) matters. The latter should be called first on all managed authorizables to prevent the "Cyclic group membership" exception which may happen when a group has been fundamentally changed.

The reproduce the issue with 2.5.2 just create the following group memberships first

group 1 -> group 2 -> group 3
establish that membership in the ACTool and then change via config to
group 2 -> group3 -> group1

@kwin kwin self-assigned this Apr 2, 2020
@kwin kwin modified the milestones: 2.5.3, 2.5.4 Apr 2, 2020
@kwin kwin removed this from the 2.5.4 milestone Jul 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant