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

jcr:content and its children not overwritten during installation of Simple File Aggregate

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.1.38
    • 3.1.40
    • Packaging
    • None

    Description

      For simple file aggregates in a package, the child node jcr:content is not correctly overwritten.

      Example
      State in repository

      + content
        + test
          + thumbnail.png [nt:file]
            +  jcr:content [nt:resource]
              + dam:thumbnails [nt:folder]
      

      In my package I have the filter

      <workspaceFilter version="1.0">
          <filter root="/content/test"/>
      </workspaceFilter>
      

      And the package content consists of only the binary file /content/test/thumbnail.png.

      Once I install that package it will not remove/recreate /content/test/thumbnail.png/jcr:content and also leave the child node dam:thumbnails in place.

      I would expect that /content/test/thumbnail.png/jcr:content/dam:thumbnails is removed with the installation of the package.

      Attachments

        Issue Links

          Activity

            (I guess the /conf/test in the filter is a typo). however, can you attach the test package?

            tripod Tobias Bocanegra added a comment - (I guess the /conf/test in the filter is a typo). however, can you attach the test package?
            kwin Konrad Windszus added a comment - tripod I added a failing test case in https://github.com/apache/jackrabbit-filevault/pull/9 .

            thanks for the patch kwin.

            fixed in r1799400

            tripod Tobias Bocanegra added a comment - thanks for the patch kwin . fixed in r1799400
            kwin Konrad Windszus added a comment - - edited

            This issue also affects vlt:definition nodes below subpackages (as subpackages created through the maven-plugin are a binary ZIP file only). That means that both filter.xml as well as e.g. dependencies might be stale (as the vlt:definition is considered during package install).

            kwin Konrad Windszus added a comment - - edited This issue also affects vlt:definition nodes below subpackages (as subpackages created through the maven-plugin are a binary ZIP file only). That means that both filter.xml as well as e.g. dependencies might be stale (as the vlt:definition is considered during package install).

            People

              tripod Tobias Bocanegra
              kwin Konrad Windszus
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: