Dominik Süß created SLING-8387:
----------------------------------

             Summary: ACL Repoinit statements after conversion miss out create 
path statements
                 Key: SLING-8387
                 URL: https://issues.apache.org/jira/browse/SLING-8387
             Project: Sling
          Issue Type: Bug
            Reporter: Dominik Süß


The acl generation in repoinit is missing out on creating the corresponding 
paths - this leads to abortion and failure of startup with exceptions as

{code}
02.05.2019 16:14:41.419 *ERROR* [Apache Sling Repository Startup Thread] 
com.adobe.granite.repository.impl.SlingRepositoryManager Exception in a 
SlingRepositoryInitializer, SlingRepository service registration aborted
java.lang.RuntimeException: Failed to set ACL (javax.jcr.PathNotFoundException: 
Cannot set ACL on non-existent path /etc/my/path) AclLine ALLOW 
{paths=[/etc/my/path], privileges=[jcr:read, jcr:modifyAccessControl, 
jcr:readAccessControl]}
{code}

To avoid that the parent structure should be created via createPath right ahead 
of this section and should be constructed with the nodeTypes of the parent 
structures in the containing packages. (sidenote - there is a chance of parent 
structures not reflecting the right parent structures - yet I think we can for 
now live with this constraint and indicate this requirement - we anyhow will 
switch to other definition of service users once we can define in the immutable 
space).

//cc [~simone.tripodi]



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to