Carsten Ziegeler created JCR-3987:
-------------------------------------
Summary: jackrabbit-jcr-commons JcrUtils.getOrCreateByPath fails
if session is not allowed to read root
Key: JCR-3987
URL: https://issues.apache.org/jira/browse/JCR-3987
Project: Jackrabbit Content Repository
Issue Type: Bug
Components: jackrabbit-jcr-commons
Affects Versions: 2.12.1
Reporter: Carsten Ziegeler
JcrUtils.getOrCreateByPath starts to try to find the node from the root down
to the specified path, therefore if the current session has not access to "/",
it fails. JcrUtils.getOrCreateByPath must try the longest path first and then
reduce it until it finds an accessible node. So for example if the input is
"/a/b/c" instead of testing for "/", "/a", "/a/b" .. it should test /a/b/c,
/a/b, /a and then /
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)