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

Snapshot creation fails for unsealed subpackages in a repository location covered by filter rules

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.1.38
    • Fix Version/s: None
    • Component/s: Packaging
    • Labels:
      None

      Description

      Whenever you want to install a package for the first time, which includes e.g. /etc/packages/some/name as root in the filter rules (e.g. with mode MERGE) in the filter rules, creating a SNAPSHOT before installing that package fails, in case any of the existing packages in /etc/packages/some/name are unsealed. (e.g. for packages which have just been created but never built).

      The stack trace looks like this

      org.apache.jackrabbit.vault.packaging.PackageException: Only sealed (built) sub packages allowed: some/name:<my unsealed package id>
              at org.apache.jackrabbit.vault.packaging.impl.JcrPackageManagerImpl.validateSubPackages(JcrPackageManagerImpl.java:625)
              at org.apache.jackrabbit.vault.packaging.impl.JcrPackageManagerImpl.assemble(JcrPackageManagerImpl.java:583)
              at org.apache.jackrabbit.vault.packaging.impl.JcrPackageImpl.snapshot(JcrPackageImpl.java:835)
              at org.apache.jackrabbit.vault.packaging.impl.JcrPackageImpl.extract(JcrPackageImpl.java:394)
              at org.apache.jackrabbit.vault.packaging.impl.JcrPackageImpl.extract(JcrPackageImpl.java:356)
              at org.apache.jackrabbit.vault.packaging.impl.JcrPackageImpl.extract(JcrPackageImpl.java:502)
              at org.apache.jackrabbit.vault.packaging.impl.JcrPackageImpl.extract(JcrPackageImpl.java:356)
              at org.apache.jackrabbit.vault.packaging.impl.JcrPackageImpl.install(JcrPackageImpl.java:350)
      

      The expected behaviour would be to just include the unsealed package in the snapshot!

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              kwin Konrad Windszus
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: