Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-206

RootImpl#getTree relies on accessibility of all intermediate trees

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.4
    • core
    • None

    Description

      as explained in OAK-205 the currently implementation of Root#getTree
      relies on the assumption that all intermediate trees are accessible:

      TreeImpl child = rootTree;
      for (String name : elements(path)) {
      child = child.getChild(name);
      if (child == null)

      { return null; }

      }
      return child;

      this might not be the case once we have permissions enforced in oak-core.
      we may either fix that on the API level (see OAK-205) which apart from
      making the oak-api permission sensitive would be quite convenient to use
      in oak-jcr...

      for the time being we should fix the current implementation to use an
      implementation specific access method on TreeImpl.

      Attachments

        Activity

          People

            angela Angela Schreiber
            angela Angela Schreiber
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: