Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Repoinit JCR 1.1.42
-
None
Description
Currently "create path ...." is a no-op when the path does already exist (https://github.com/apache/sling-org-apache-sling-jcr-repoinit/blob/9913b787574186a7a31d184480cec3862816438f/src/main/java/org/apache/sling/jcr/repoinit/impl/AclVisitor.java#L191). This is dangerous as then the path might have other primary and mixin types and subsequent calls of "set properties ..." might fail.
Instead the primary type and mixins should potentially be adjusted on existing nodes as well.
This happened in https://github.com/adobe/aem-project-archetype/issues/997#issuecomment-1351895791 which lead to not starting the repository at all.
Attachments
Issue Links
- causes
-
SLING-11769 Update to Repoinit Parser 1.9.0
- Resolved
-
SLING-11750 Support the new repoinit statements
- Closed
- relates to
-
SLING-10463 Repoinit fails to create node if property already exists at the same path
- Closed
- links to