jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas März (JIRA) <j...@apache.org>
Subject [jira] [Commented] (JCR-3364) Moving of nodes requires read access to all parent nodes of the destination node
Date Wed, 04 Jul 2012 12:20:36 GMT

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

Thomas März commented on JCR-3364:
----------------------------------

Hello Bart,

wouldn't ItemManager#getItemData(ItemId itemId, Path path, boolean permissionCheck) with disabled
permissionCheck help solving this problem?
Isn't this a use case the parameter permissionCheck should solve?

Best regards,
Thomas

By the way, here's part of the stacktrace:

{code}
javax.jcr.AccessDeniedException: cannot read item a0e6a28e-5546-41f0-b5e7-0b4815fc72b5
	at org.apache.jackrabbit.core.ItemManager.createItemData(ItemManager.java:844)
	at org.apache.jackrabbit.core.ItemManager.getItemData(ItemManager.java:391)
	at org.apache.jackrabbit.core.ItemManager.getItem(ItemManager.java:328)
	at org.apache.jackrabbit.core.ItemManager.getItem(ItemManager.java:622)
	at org.apache.jackrabbit.core.NodeImpl$6.perform(NodeImpl.java:1710)
	at org.apache.jackrabbit.core.NodeImpl$6.perform(NodeImpl.java:1705)
	at org.apache.jackrabbit.core.session.SessionState.perform(SessionState.java:216)
	at org.apache.jackrabbit.core.ItemImpl.perform(ItemImpl.java:91)
	at org.apache.jackrabbit.core.NodeImpl.getParent(NodeImpl.java:1705)
	at org.apache.jackrabbit.core.SessionMoveOperation.createTransientParentStates(SessionMoveOperation.java:213)
	at org.apache.jackrabbit.core.SessionMoveOperation.perform(SessionMoveOperation.java:195)
	at org.apache.jackrabbit.core.session.SessionState.perform(SessionState.java:216)
	at org.apache.jackrabbit.core.SessionImpl.perform(SessionImpl.java:361)
	at org.apache.jackrabbit.core.SessionImpl.move(SessionImpl.java:869)
{code}

                
> Moving of nodes requires read access to all parent nodes of the destination node
> --------------------------------------------------------------------------------
>
>                 Key: JCR-3364
>                 URL: https://issues.apache.org/jira/browse/JCR-3364
>             Project: Jackrabbit Content Repository
>          Issue Type: Bug
>          Components: jackrabbit-core
>    Affects Versions: 2.2.12, 2.4.2, 2.5
>            Reporter: Thomas März
>
> Before JCR-3291 was fixed, Session#move(String, String) could move nodes without having
read-access to the whole tree.
> - Deny jcr:read on /home and grant jcr:all on /home/users/usera to usera
> - Move nodes from /home/users/usera/from to /home/users/usera/to with usera's session
> - AccessDeniedException is thrown
> http://article.gmane.org/gmane.comp.apache.jackrabbit.user/18892

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

Mime
View raw message