Hi,

I have found an issue [0] with JcrResourceUtil.createPath. Attached the patch 
as well in the issue, I have also added some test cases for 
JcrResourceUtil.createPath

Summary:
JcrResourceUtil.createPath fails for path such as
/a/b/c/d/e
where /ab/c already exists and d/e needs to be created in certain acl setups 
i.e.
user has read & write permission to /a/b/c not don't have read permission on /.
Current implementation expects that user would have read permission on root 
node.

Is it okie to fix this?

I have only fixed the issue in
Node createPath(String path,
                                  String intermediateNodeType,
                                  String nodeType,
                                  Session session,
                                  boolean autoSave)

for the other variant, I am not sure if we need to fix that as well. As caller 
is already passing parentNode, so we can assume that user already have access 
to  parentNode.

Thanks,
Amit
[0] https://issues.apache.org/jira/browse/SLING-3361

Reply via email to