[
https://issues.apache.org/jira/browse/SLING-1251?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ray Davis updated SLING-1251:
-----------------------------
Attachment: SLING-1251.patch
While testing this issue, I also found that a NullPointerException will be
thrown if the specified policy lacks a "granted" array specification (as
opposed to specifying an empty array). This patch takes care of that as well.
> contentloader security:acl handling broken by Jackrabbit 1.6
> ------------------------------------------------------------
>
> Key: SLING-1251
> URL: https://issues.apache.org/jira/browse/SLING-1251
> Project: Sling
> Issue Type: Bug
> Components: JCR
> Affects Versions: JCR ContentLoader 2.0.8
> Reporter: Ray Davis
> Attachments: SLING-1251.patch
>
>
> After building rev 892191, I loaded a bundle with a JSON descriptor file
> including access control initialization as described in SLING-981:
> "security:acl" : [
> {
> "principal" : "everyone",
> "granted" : [
> "jcr:removeChildNodes"
> ]
> }
> On bundle activation, an exception was thrown:
> *ERROR* [SCR Component Actor]
> org.apache.sling.jcr.contentloader.internal.Loader Cannot load initial
> content for bundle org.sakaiproject.kernel.site : Unable to find an access
> conrol policy to update. javax.jcr.RepositoryException: Unable to find an
> access conrol policy to update.
> at
> org.apache.sling.jcr.contentloader.internal.DefaultContentCreator.createAce(DefaultContentCreator.java:825)
> at
> org.apache.sling.jcr.contentloader.internal.readers.JsonReader.createAce(JsonReader.java:425)
> at
> org.apache.sling.jcr.contentloader.internal.readers.JsonReader.createAcl(JsonReader.java:391)
> at
> org.apache.sling.jcr.contentloader.internal.readers.JsonReader.createNode(JsonReader.java:193)
> at
> org.apache.sling.jcr.contentloader.internal.readers.JsonReader.parse(JsonReader.java:157)
> at
> org.apache.sling.jcr.contentloader.internal.readers.JsonReader.parse(JsonReader.java:138)
> at
> org.apache.sling.jcr.contentloader.internal.Loader.createNode(Loader.java:518)
> This is caused by the same issue as SLING-1208. A change in the Jackrabbit
> 1.6 AccessControlManager means we need to try calling getPolicies as well as
> getApplicablePolicies.
> I'll upload a patch.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.