AEM 6.2 - AccessControlException - Only root can store repository level policies | Community
Skip to main content
priyac92178889
Level 2
March 28, 2018
Solved

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

  • March 28, 2018
  • 2 replies
  • 1273 views

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.
Best answer by Hemant_arora

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

Hemant_arora
Hemant_aroraAccepted solution
Level 8
March 28, 2018

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.

priyac92178889
Level 2
April 9, 2018

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