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

filter.xml does not delete nodes defined in includes/excludes if folder does not exist in content package

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.5.6
    • None
    • package maven plugin, vlt
    • None

    Description

      Failing test case over here: https://github.com/henrykuijpers/jackrabbit-filevault/commit/75ff3d7a6283e78510c87db18ad6d10626dcc4ac

      We have the following filter.xml:

          <filter root="/etc/workflow/launcher/config/update_asset_create"/>
          <filter root="/etc/workflow/launcher/config/update_asset_mod"/>
          <filter root="/etc/workflow/launcher/config">
              <include pattern="/etc/workflow/launcher/config/something-.*(/.*)?"/>
          </filter>
      

      The content package is as follows:

      MB0010:Downloads henrykuijpers$ unzip -l "cleanup.zip"
      Archive:  cleanup.zip
        Length      Date    Time    Name
      ---------  ---------- -----   ----
            139  12-15-2021 15:59   META-INF/MANIFEST.MF
              0  12-15-2021 15:59   META-INF/
              0  12-15-2021 15:59   META-INF/vault/
            785  12-15-2021 15:59   META-INF/vault/properties.xml
           3592  12-15-2021 15:59   META-INF/vault/config.xml
            179  12-15-2021 15:59   META-INF/vault/filter.xml
            338  12-15-2021 15:59   jcr_root/.content.xml
            308  12-15-2021 15:59   META-INF/vault/nodetypes.cnd
              0  12-15-2021 15:59   META-INF/vault/definition/
            947  12-15-2021 15:59   META-INF/vault/definition/.content.xml
      

      As you can see, we're not including any content in the content package. Our assumption would be that:

      /etc/workflow/launcher/config/update_asset_create is deleted => Works
      /etc/workflow/launcher/config/update_asset_mod is deleted => Works
      /etc/workflow/launcher/config/test is untouched => Works
      /etc/workflow/launcher/config/something-test is deleted => Does not work

      The entries in the "include"-part of the /etc/workflow/launcher/config filter are only considered, when the jcr_root/etc/workflow/launcher/config folder is present in the content package.

      However, the other 2 entries do cause the expected deletion.

      Attachments

        Activity

          People

            Unassigned Unassigned
            Henry Kuijpers Henry Kuijpers
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: