Uploaded image for project: 'Jackrabbit Content Repository'
  1. Jackrabbit Content Repository
  2. JCR-3987

jackrabbit-jcr-commons JcrUtils.getOrCreateByPath fails if session is not allowed to read root

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

      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 /

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            reschke Julian Reschke
            cziegeler Carsten Ziegeler
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment