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 "Antonio Sanso (JIRA)" <ji...@apache.org> on 2013/08/21 16:48:53 UTC
[jira] [Commented] (OAK-974) Node#addNode throws
ItemExistsException for existing node
[ https://issues.apache.org/jira/browse/OAK-974?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13746089#comment-13746089 ]
Antonio Sanso commented on OAK-974:
-----------------------------------
the API says
{code}
* @throws ItemExistsException if an item at the specified path already
* exists, same-name siblings are not allowed and this implementation
* performs this validation immediately.
{code}
so both Oak and JR seems to comply (just different implementations)
> Node#addNode throws ItemExistsException for existing node
> ---------------------------------------------------------
>
> Key: OAK-974
> URL: https://issues.apache.org/jira/browse/OAK-974
> Project: Jackrabbit Oak
> Issue Type: Sub-task
> Components: jcr
> Reporter: Antonio Sanso
> Attachments: OAK-974-patch.txt
>
>
> Node#addNode throws ItemExistsException for existing node .
> e.g.
> {code}
> session.getRootNode().addNode("foo");
> session.save();
> session.getRootNode().addNode("foo");
> {code}
> This is not the case for Jackrabbit
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira