Uploaded image for project: 'Jackrabbit FileVault'
  1. Jackrabbit FileVault
  2. JCRVLT-737

IdConflictPolicy.LEGACY: Parent node not found when installing a package - improve test coverage

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.7.2
    • 3.8.0
    • Packaging
    • None

    Description

      When importing a resource that already exists at with the same jcr:uuid but at a different path, the importer balks with :

       

      Caused by: javax.jcr.RepositoryException: Some errors occurred while installing packages. Please check the logs for details. First exception is logged as cause.
      	at org.apache.jackrabbit.vault.fs.io.Importer.run(Importer.java:579) [org.apache.jackrabbit.vault:3.7.1.T20231005151103-335689a8]
      	at org.apache.sling.distribution.serialization.impl.vlt.FileVaultContentSerializer.importFromStream(FileVaultContentSerializer.java:151) [org.apache.sling.distribution.core:0.6.0.T202209271257-98a9dd5]
      	... 11 common frames omitted
      Caused by: org.apache.jackrabbit.vault.packaging.PackageException: Error creating/updating node /content/dam/cgc/tenants/apac/documents/unitholder-letter/pds-cgnpau-12012023(au).pdf/jcr:content
      	at org.apache.jackrabbit.vault.fs.io.Importer.commit(Importer.java:1177) [org.apache.jackrabbit.vault:3.7.1.T20231005151103-335689a8]
      	at org.apache.jackrabbit.vault.fs.io.Importer.commit(Importer.java:976) [org.apache.jackrabbit.vault:3.7.1.T20231005151103-335689a8]
      	at org.apache.jackrabbit.vault.fs.io.Importer.commit(Importer.java:1018) [org.apache.jackrabbit.vault:3.7.1.T20231005151103-335689a8]
      	at org.apache.jackrabbit.vault.fs.io.Importer.commit(Importer.java:1018) [org.apache.jackrabbit.vault:3.7.1.T20231005151103-335689a8]
      	at org.apache.jackrabbit.vault.fs.io.Importer.commit(Importer.java:1018) [org.apache.jackrabbit.vault:3.7.1.T20231005151103-335689a8]
      	at org.apache.jackrabbit.vault.fs.io.Importer.commit(Importer.java:1018) [org.apache.jackrabbit.vault:3.7.1.T20231005151103-335689a8]
      	at org.apache.jackrabbit.vault.fs.io.Importer.commit(Importer.java:1018) [org.apache.jackrabbit.vault:3.7.1.T20231005151103-335689a8]
      	at org.apache.jackrabbit.vault.fs.io.Importer.commit(Importer.java:1018) [org.apache.jackrabbit.vault:3.7.1.T20231005151103-335689a8]
      	at org.apache.jackrabbit.vault.fs.io.Importer.commit(Importer.java:1018) [org.apache.jackrabbit.vault:3.7.1.T20231005151103-335689a8]
      	at org.apache.jackrabbit.vault.fs.io.Importer.commit(Importer.java:1018) [org.apache.jackrabbit.vault:3.7.1.T20231005151103-335689a8]
      	at org.apache.jackrabbit.vault.fs.io.Importer.commit(Importer.java:1018) [org.apache.jackrabbit.vault:3.7.1.T20231005151103-335689a8]
      	at org.apache.jackrabbit.vault.fs.io.Importer.run(Importer.java:531) [org.apache.jackrabbit.vault:3.7.1.T20231005151103-335689a8]
      	... 12 common frames omitted
      Caused by: java.lang.IllegalStateException: Parent node not found.
      	at org.apache.jackrabbit.vault.fs.io.Importer.commit(Importer.java:1103) [org.apache.jackrabbit.vault:3.7.1.T20231005151103-335689a8]
      	... 23 common frames omitted  

      After removing the resource from the target repository, re-applying the package will succeed.

       

      Configuration of the importer:

      aclHandling :"MERGE_PRESERVE"
      cugHandling :"OVERWRITE"
      importMode: "REPLACE"
      autoSaveThreshold: 1000 

      Attachments

        Issue Links

          Activity

            People

              reschke Julian Reschke
              marett Timothee Maret
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: