Skip to content
This repository was archived by the owner on Mar 10, 2025. It is now read-only.

Conversation

@jhron
Copy link

@jhron jhron commented May 21, 2024

Fixes issue when aclUtilService.changeOwner() doesn't persist changes to database due to AclObjectIdentity doesn't see changed property as dirty so it is never saved.

The DirtyCheck annotation has been added to the AbstractAclObjectIdentity class to improve change tracking. Additionally, a 'change owner' function with corresponding integration tests has been added to the AclUtilServiceSpec class to allow for changing the owner of an object. The tests ensure that the change in ownership is properly reflected in both Acl and persistent data.

jhron added 3 commits May 21, 2024 13:38
The DirtyCheck annotation has been added to the AbstractAclObjectIdentity class to improve change tracking. Additionally, a 'change owner' function with corresponding integration tests has been added to the AclUtilServiceSpec class to allow for changing the owner of an object. The tests ensure that the change in ownership is properly reflected in both Acl and persistent data.
Modified the changeOwner method in AclUtilService.groovy to handle various types of input recipients. The new recipient can be a username, role name, Sid, or Authentication.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant