AEM 6.2 - AccessControlException - Only root can store repository level policies | Community
Skip to main content
priyac92178889
Level 2
Mar 28, 2018 12:16 AM UTC
Solved

AEM 6.2 - AccessControlException - Only root can store repository level policies

Hi ,

I am trying to migrate the application from AEM 6.0 to AEM 6.2

When i try to manually deploy the package as admin, i am getting below  error.

"javax.jcr.security.AccessControlException: OakAccessControl0012: Only root can store repository level policies (/etc/workflow/models/abc).

I want this node abc to be access controlled and i have set ACL  for specific users

If I remove jcr:mixinTypes="[rep:AccessControllable,rep:RepoAccessControllable]" for the node /etc/workflow/models/abc, then try to deploy, I don't get this issue.

Has any one faced this issue before . Could some one suggest how solve it  or help me to understand why it's happening.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Hemant_arora
Hemant_aroraAccepted solution
Level 8
Mar 28, 2018 6:33 AM UTC

Mixin node types usually specify additional properties or child nodes related to a capability being added to the node. These capabilities may include generic repository-level functions as in the case of the built-in mixins mix:versionable and mix:lockable

So while creating package you must select the merge or overwrite option in AC handling under the advanced tab.

2 replies

priyac92178889
Level 2
Apr 9, 2018 8:34 AM UTC

AC handling in Advance tab is set to overwrite ,yet i am still seeing the oak error .

i had to remove the mixin types to get the package installed with out error . Is this an issue with AEM 6.2

Translate
Hemant_arora
Hemant_aroraAccepted solution
Level 8
Mar 28, 2018 6:33 AM UTC

Mixin node types usually specify additional properties or child nodes related to a capability being added to the node. These capabilities may include generic repository-level functions as in the case of the built-in mixins mix:versionable and mix:lockable

So while creating package you must select the merge or overwrite option in AC handling under the advanced tab.

Translate