Uploaded image for project: 'ModeShape'
  1. ModeShape
  2. MODE-2225

Custom AuthorizationProvider is not invoked for each child node when iterating through the child nodes of a parent node

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Major Major
    • 4.0.0.Alpha4
    • 4.0.0.Alpha3
    • None
    • None

      When executing the following code:

      Set<String> nodes = new TreeSet<>();  
      Node parentNode = repositorySession.getNode(parentPath);  
      for (NodeIterator nodeIterator = parentNode.getNodes(); nodeIterator.hasNext(); ) {  
          nodes.add(nodeIterator.nextNode().getPath());  
      }  
      

      a custom AuthorizationProvider is only called once for the parent node, it is not called for each of the child nodes that are retrieve via the iterator. Instead as long as the custom AuthorizationProvider allows the parent node to be read all of the child nodes can also be read without checking that the user has permission to do so.

              hchiorean Horia Chiorean (Inactive)
              ma6rl_jira Richard Lucas (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: