[
https://issues.apache.org/jira/browse/OAK-2810?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14680013#comment-14680013
]
angela edited comment on OAK-2810 at 8/10/15 12:11 PM:
-------------------------------------------------------
[~ferlemes], yes you are right. i verified this as well. IMHO the check for
protected source (neither parent nor source node) doesn't make sense for copy.
it should only check for protected destination parent.
fixed at revision 1695039 with 2 additional test specifically testing protected
source and destination parent; also renamed the test provided in the patch to
reflect the fact that the parent is not accessible (also renaming this report
as it's not limited to protected parent nodes)
was (Author: anchela):
[~ferlemes], yes you are right. i verified this as well. IMHO the check for
protected source (neither parent nor source node) doesn't make sense for copy.
it should only check for protected destination parent.
fixed at revision 1695039 with 2 additional test specifically testing protected
source and destination parent; also renamed the test provided in the patch to
reflect the fact that the parent is not accessible.
> Cannot copy a node if parent is not accessible
> ----------------------------------------------
>
> 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, patch-available
> Attachments: patch_to_CopyTest_file.patch
>
>
> 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)