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 "Angela Schreiber (Jira)" <ji...@apache.org> on 2022/05/06 14:59:00 UTC

[jira] [Created] (OAK-9764) Improve implementation of Node.isNodeType(String)

Angela Schreiber created OAK-9764:
-------------------------------------

             Summary: Improve implementation of Node.isNodeType(String)
                 Key: OAK-9764
                 URL: https://issues.apache.org/jira/browse/OAK-9764
             Project: Jackrabbit Oak
          Issue Type: Improvement
          Components: jcr
            Reporter: Angela Schreiber


as discussed with [~rma61870@adobe.com] today we might want to take another look at the implementation of {{Node.isNodeType(String)}} in {{org.apache.jackrabbit.oak.jcr.session.NodeImpl}}

- avoid the explicit permission check for accessibility of jcr:mixinTypes (*)
- only create the lazy-value for a readonly tree once (and thus only resolve it once)
- maybe load mixin types lazily and only if the primary type doesn't match

(*) there used to be a regression in the past where deleted node mixins got revived (see OAK-7652)



--
This message was sent by Atlassian Jira
(v8.20.7#820007)