Joerg Hoh created OAK-11187:
-------------------------------

             Summary: Implement NodeImpl.getParentOrNull
                 Key: OAK-11187
                 URL: https://issues.apache.org/jira/browse/OAK-11187
             Project: Jackrabbit Oak
          Issue Type: Bug
          Components: core, jackrabbit-api
            Reporter: Joerg Hoh


The JackrabbitSession already has an default implementation of

{noformat}
default Node getParentOrNull(@NotNull Item item) throws RepositoryException 
{noformat}

but internally there is no optimized version available. This can be useful, as 
I have seen cases in threaddumps, where the Node.getParent() implementation 
creates an AccessDeniedException; so there is definitely some value in an 
implementation of {{getParentOrNull}} in the JR extensions which avoids the 
creation of such an exception.




--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to