jackrabbit-oak-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amrit Verma (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (OAK-3775) Inconsistency between Node.getPrimaryType and Node.isNodeType
Date Fri, 11 Dec 2015 18:43:11 GMT

    [ https://issues.apache.org/jira/browse/OAK-3775?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15053178#comment-15053178
] 

Amrit Verma commented on OAK-3775:
----------------------------------

[~anchela], Could you please have a look at this issue.

>  Inconsistency between Node.getPrimaryType and Node.isNodeType
> --------------------------------------------------------------
>
>                 Key: OAK-3775
>                 URL: https://issues.apache.org/jira/browse/OAK-3775
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: jcr
>            Reporter: Amrit Verma
>
> Steps:
> 1. Create a node structure say /node1/node2 (node2 should be nt:hierarchyNode type node)
> 2. Create a testuser and grant read permission on whole repository.
> 3. Grant permission jcr:read to testuser on node2.
> 3. On node2, deny jcr:read to testuser with rep:glob=/*
> Execute the following from testuser's session:
> * {{node.getPrimaryNodeType().isNodeType(JcrConstants.NT_HIERARCHYNODE)}}
> * {{node.isNodeType(JcrConstants.NT_HIERARCHYNODE)}}
> where node refers to node2 created above. The first expression returns true but the second
returns false. 
> Expected: both should return true.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message