accesscontroltool icon indicating copy to clipboard operation
accesscontroltool copied to clipboard

ClassCastException when purging authorizables

Open inedoviesov1 opened this issue 5 years ago • 2 comments

We have a group "GroupA" (created by ACTool) and we have a CUG configured on some page to allow access for this group. Now we do not need this group anymore and would like to delete it. When running ACTool we get an exception: Exception while purgin authorizables: java.lang.ClassCastException: org.apache.jackrabbit.oak.spi.security.authorization.cug.impl.CugPolicyImpl cannot be cast to javax.jcr.security.AccessControlList Source https://github.com/Netcentric/accesscontroltool/blob/faa8a902d19dad35e9a33d2c8b958430f8b8de82/accesscontroltool-bundle/src/main/java/biz/netcentric/cq/tools/actool/impl/AcInstallationServiceImpl.java#L840

While this error is valid and should prevent the deletion of the group, would be nice to have more information in the logs, what group could not be deleted, and what is the path in the repository.

inedoviesov1 avatar Jul 14 '20 14:07 inedoviesov1

PR highly appreciated!

kwin avatar Jul 14 '20 14:07 kwin

In few weeks after vacation.

inedoviesov1 avatar Jul 14 '20 16:07 inedoviesov1