cschneider opened a new pull request, #477: URL: https://github.com/apache/jackrabbit-filevault/pull/477
REPLACE currently imports an existing authorizable through a JCR UUID-collision replacement that removes its whole subtree. Descendants excluded from the workspace filter are deleted even though the package does not request their replacement. Stash excluded descendant subtrees before replacement and restore them at their relative paths under the new authorizable. Evaluate the filter at the destination path so moved users are handled correctly. Included content absent from the package remains deleted; missing included ancestors are recreated only as structural containers for excluded descendants. Failures to stash or restore are propagated rather than silently losing data. Preserved subtrees retain identifiers and attached node-local ACLs. Protected policy children on included ancestors are not independently restored; existing imported policy handling remains unchanged. User caches and authentication tokens are not preserved. Document intentional deletion as an included path omitted from the payload. Regression coverage exercises regular/system users, same/moved paths, root-only/subtree exclusions, absent source descendants, repeated replacement, effective ACL access, cache/token removal, included-content replacement/deletion, and nested exclusions below an omitted ancestor. Validation: 246 selected user/ACL/principal-policy/folder integration tests across Oak minimum/maximum and Jackrabbit, with zero failures (14 repository-specific skips). Five new preservation tests fail with the preservation call disabled; the intentional-deletion case continues to pass. Existing core unit tests passed. The local Bnd resolver could not resolve javax.jcr, so the reactor verification used -Dbnd.resolve.skip=true; no resolver configuration is changed. Command: mvn -B -pl vault-core-it/vault-core-it-execution/vault-core-it-execution-oak-max,vault-core-it/vault-core-it-execution/vault-core-it-execution-oak-min,vault-core-it/vault-core-it-execution/vault-core-it-execution-jr2-min -am install -Dtoolchain-version=11 -Dit.test="UserContentPackageIT,*Principal*IT,*ACL*IT,ACEsAtRootIT,FolderArtifactHandlerIT" -Dfailsafe.failIfNoSpecifiedTests=false -Dbnd.resolve.skip=true Build JDK: 17; minimum-Oak test runtime: 11. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
