Netcentric / accesscontroltool

Rights and roles management for AEM made easy
Eclipse Public License 1.0
150 stars 91 forks source link

ClassCastException when purging authorizables #479

Open inedoviesov1 opened 4 years ago

inedoviesov1 commented 4 years ago

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.

kwin commented 4 years ago

PR highly appreciated!

inedoviesov1 commented 4 years ago

In few weeks after vacation.