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 "Fernando Lemes (JIRA)" <ji...@apache.org> on 2015/04/24 23:43:38 UTC
[jira] [Commented] (OAK-2810) Cannot copy a node from a parent with
restricted access
[ https://issues.apache.org/jira/browse/OAK-2810?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14511831#comment-14511831 ]
Fernando Lemes commented on OAK-2810:
-------------------------------------
Just changing the line
original> sessionDelegate.checkProtectedNode(getParentPath(srcOakPath));
to
modified> sessionDelegate.checkProtectedNode(srcOakPath);
on org.apache.jackrabbit.oak.jcr.session.WorkspaceImpl.copy(String,String,String) method solves the issue, but I'm not sure if there was a reason the check the parent node at that point.
> Cannot copy a node from a parent with restricted access
> -------------------------------------------------------
>
> Key: OAK-2810
> URL: https://issues.apache.org/jira/browse/OAK-2810
> Project: Jackrabbit Oak
> Issue Type: Bug
> Components: jcr
> Affects Versions: 1.1.8
> Reporter: Fernando Lemes
> Labels: easytest, security
>
> If we try to copy a node, in which we have full access, but with no access on the parent node, the copy operation will throw a PathNotFoundException when evaluating checkProtectedNode(getParentPath("sourceNodePath")) on the copy() method from org.apache.jackrabbit.oak.jcr.session.WorkspaceImpl
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)