You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Joerg Hoh (Jira)" <ji...@apache.org> on 2024/10/11 15:34:00 UTC

[jira] [Created] (OAK-11187) Implement NodeImpl.getParentOrNull

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)