PermissionService.deletePermissions throwing DataIntegrityViolationException

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2023 06:32 PM
Usage of permissionService.deletePermissions started throwing DataIntegrityViolationException in certain cases when calling this method prior to setting permissions:
permissionService.deletePermissions(nodeRef)
Detailed exception message also contains following information:
Cause: org.postgresql.util.PSQLException: ERROR: update or delete on table "alf_access_control_list" violates foreign key constraint "fk_alf_node_acl" on table "alf_node" Detail: Key (id)=(38685) is still referenced from table "alf_node".
Querying the database returns valid related nodes that are content, thumbnails etc. of the folder that is having permissions set.
Any pointers?
Any pointers?
Labels:
- Labels:
-
Alfresco Content Services
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2023 10:08 AM
Can you inspect the permissions of the nodeRef in question? Did you also tried this manually?
~Abhinav
(ACSCE, AWS SAA, Azure Admin)
(ACSCE, AWS SAA, Azure Admin)
