jackrabbit-oak-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Konrad Windszus (Jira)" <j...@apache.org>
Subject [jira] [Commented] (OAK-9541) ItemExistsException: "Node with the same UUID exists" thrown during SysView import with existing different UUID
Date Thu, 19 Aug 2021 16:26:00 GMT

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

Konrad Windszus commented on OAK-9541:
--------------------------------------

According to https://github.com/apache/jackrabbit/blob/ed3124e5fe223dada33ce6ddf53bc666063c3f2f/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/SerializationTest.java#L397
and https://docs.adobe.com/content/docs/en/spec/jsr170/javadocs/jcr-2.0/javax/jcr/Session.html#importXML(java.lang.String,%20java.io.InputStream,%20int)
the {{ItemExistsException}} is actually correct. But the message "Node with the same UUID
exists:" is definitely wrong here.

> ItemExistsException: "Node with the same UUID exists" thrown during SysView import with
existing different UUID
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: OAK-9541
>                 URL: https://issues.apache.org/jira/browse/OAK-9541
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: jcr
>    Affects Versions: 1.40.0
>            Reporter: Konrad Windszus
>            Priority: Major
>
> When trying to import a node via SysViewImportHandler which already exists at the same
path with a different (but non-referenced UUID) in the repo the following exception can be
observed:
> {code}
>  javax.jcr.ItemExistsException: Node with the same UUID exists:/tmp/referenceable/child:
{ jcr:primaryType = nt:unstructured}
> 	at org.apache.jackrabbit.oak.jcr.xml.ImporterImpl.startNode(ImporterImpl.java:426) ~[oak-jcr-1.40.0.jar:1.40.0]
> 	at org.apache.jackrabbit.oak.jcr.xml.SysViewImportHandler.processNode(SysViewImportHandler.java:81)
~[oak-jcr-1.40.0.jar:1.40.0]
> 	at org.apache.jackrabbit.oak.jcr.xml.SysViewImportHandler.endElement(SysViewImportHandler.java:221)
~[oak-jcr-1.40.0.jar:1.40.0]
> 	at org.apache.jackrabbit.oak.jcr.xml.ImportHandler.endElement(ImportHandler.java:197)
~[oak-jcr-1.40.0.jar:1.40.0]
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message