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

Group permissions lost then moving node to another Site #2444

Open
iohann95 opened this issue Feb 9, 2024 · 1 comment · May be fixed by #2907
Open

Group permissions lost then moving node to another Site #2444

iohann95 opened this issue Feb 9, 2024 · 1 comment · May be fixed by #2907

Comments

@iohann95
Copy link

iohann95 commented Feb 9, 2024

If you attempt to move a node from one site to another, all defined group permissions are lost. This occurs because Alfresco wants to clear Site Groups from the old site, but in doing so, it inadvertently removes all group permissions:

if (authority.startsWith(PermissionService.GROUP_PREFIX) &&

This issue can be resolved by modifying the code to:

if (authority.startsWith(PermissionService.GROUP_PREFIX + "site_") &&

This adjustment ensures that only "site groups" are removed, preserving explicitly defined ones.

Thanks to MorganP at the Alfresco Discord for pointing me to the right direction.

@morgan-patou
Copy link

morgan-patou commented Feb 9, 2024

@iohann95 : No problems.

Note for @anyone that will take this case, it probably needs to not hardcode the "site_" reference:

I don't have time to make a PR at the moment (and test/validate it) but I believe "GROUP_SITE_PREFIX" should be used here.

@AFaust AFaust linked a pull request Sep 12, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

2 participants