Dominik Süß created SLING-11485:
-----------------------------------
Summary: RepoInitValidator to check for content changes
contradicting repoinit
Key: SLING-11485
URL: https://issues.apache.org/jira/browse/SLING-11485
Project: Sling
Issue Type: New Feature
Components: Repoinit
Reporter: Dominik Süß
To be able to detect changes of other logic (e.g. via package-init) that
reverts changes performed by repoinit it is necessary to detect if repoinit
would cause writes.
The proposed feature
a) registers a secondary repository initializer running after packageinit to
either warn (default) or optionally fail in case applying repoinit would
contain effective changes - this is determined by not commiting the session but
passing in flag for validation that allows to either fail strict, warn or not
run in validation mode (and therefore rather apply) in case changes are present
b) for development cases or checks at runtime a jmx mBean is registered that
allows to run such a check on demand.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)