Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-9541

ItemExistsException: "Node with the same UUID exists" thrown during SysView import with existing different UUID

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 1.40.0
    • 1.42.0
    • jcr
    • None

    Description

      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:

       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]
      

      Attachments

        Issue Links

          Activity

            People

              kwin Konrad Windszus
              kwin Konrad Windszus
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: