Christian Schneider created JCRVLT-889:
------------------------------------------

             Summary: REPLACE import deletes filter-excluded authorizable 
descendants
                 Key: JCRVLT-889
                 URL: https://issues.apache.org/jira/browse/JCRVLT-889
             Project: Jackrabbit FileVault
          Issue Type: Bug
            Reporter: Christian Schneider


Installing a FileVault package in REPLACE mode can delete existing child nodes 
of a user even when the workspace filter explicitly excludes them. This can 
cause loss of repository content that the package is not intended to manage. 
Child nodes that are in scope but absent from the package should still be 
removed.

Steps to reproduce:
# Create a user with two child folders, {{local}} and {{managed}}.
# Build a package for the same user. Exclude {{local}} and its subtree in the 
workspace filter, and omit {{managed}} from the package while leaving it in 
scope.
# Install the package in REPLACE mode.

Expected: {{local}} survives, and {{managed}} is removed. Actual: both are 
removed when the existing authorizable is replaced.

Proposed fix and regression tests: 
https://github.com/apache/jackrabbit-filevault/pull/477



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to