Joerg Hoh created OAK-12058:
-------------------------------

             Summary: Remove non-required permission check when accessing mixins
                 Key: OAK-12058
                 URL: https://issues.apache.org/jira/browse/OAK-12058
             Project: Jackrabbit Oak
          Issue Type: Task
          Components: jcr
    Affects Versions: 1.90.0
            Reporter: Joerg Hoh


The JCR Spec does not mention, that access to Mixin and NodeType information 
can be prevented via access control. 

Currently {{NodeImpl.canReadMixinTypes()}} is invoked by 
{{NodeImpl.getMixinTypeNames()}}, which itself is called by these 3 API 
operations
* {{NodeImpl.addMixin(String)}}
* {{NodeImpl.getMixinNodeTypes()}}
* {{NodeImpl.isNodeType()}}

 Removing this check will avoid a few operations and have a small positive 
performance impact on the above APIs calls.

 

 



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

Reply via email to