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

o.a.j.o.api.Tree/Root allows access to hidden nodes

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.17
    • Component/s: core
    • Labels:
      None

      Description

      It's possible to access hidden nodes by using the Tree/Root class.

      Using something like

      o.a.j.o.a.Root root = ...;
      Tree hidden = root.getTree("/oak:index/test-index/:index");
      for(Tree t : hidden.getChildren()){
         System.out.println(t);
      }
      

      will dump something like

      /oak:index/test-index/:index/value049: { :next = , test = { ... } }
      /oak:index/test-index/:index/value009: { :next = value010, test = { ... } }
      /oak:index/test-index/:index/value046: { :next = value047, test = { ... } }
      /oak:index/test-index/:index/value045: { :next = value046, test = { ... } }
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mduerig Michael Dürig
                Reporter:
                edivad Davide Giannella
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: