PermissionService.deletePermissions throwing DataIntegrityViolationException

cancel
Showing results for 
Search instead for 
Did you mean: 
drive954
Member II

PermissionService.deletePermissions throwing DataIntegrityViolationException

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?
1 Reply
abhinavmishra14
Advanced

Re: PermissionService.deletePermissions throwing DataIntegrityViolationException

Can you inspect the permissions of the nodeRef in question? Did you also tried this manually?

~Abhinav
(ACSCE, AWS SAA, Azure Admin)