[ https://issues.apache.org/jira/browse/SLING-12774?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17950474#comment-17950474 ]
Robert Munteanu edited comment on SLING-12774 at 5/9/25 8:27 AM: ----------------------------------------------------------------- This ended up being off by default and activated by setting {{-Dorg.apache.sling.feature.extension.content.reinstallSnapshots=true}}. The reason is that we have two classes of applications: - immutable, that generate the repository once by installing the packages and keep around the registry metadata so it's available for inspection - mutable, that generate the repository on each startup and can potentially reprocess the SNAPSHOT packages When this property is set the ExecutionPlanRepositoryInitializer is also configured to reprocess plans that reference at least one SNAPSHOT package. was (Author: rombert): This ended up being off by default and activated by setting {{-Dorg.apache.sling.feature.extension.content.reinstallSnapshots=true}. The reason is that we have two classes of applications: - immutable, that generate the repository once by installing the packages and keep around the registry metadata so it's available for inspection - mutable, that generate the repository on each startup and can potentially reprocess the SNAPSHOT packages When this property is set the ExecutionPlanRepositoryInitializer is also configured to reprocess plans that reference at least one SNAPSHOT package. > Content feature launcher extension should reinstall SNAPSHOT content packages > ----------------------------------------------------------------------------- > > Key: SLING-12774 > URL: https://issues.apache.org/jira/browse/SLING-12774 > Project: Sling > Issue Type: Improvement > Components: Feature Model > Reporter: Robert Munteanu > Priority: Major > Fix For: Feature Model Content Extension 1.0.18 > > > The ContentHandler registers external packages and, presumably for the sake > of efficiency, does not trigger reinstalls for already existing content > packages and silently skips over them ( > https://github.com/apache/sling-org-apache-sling-feature-extension-content/blob/520387ec3ebcb519e08e4504ff56d5c4cd533fd4/src/main/java/org/apache/sling/feature/extension/content/ContentHandler.java#L79-L88 > ). > I think this should be relaxed to allow SNAPSHOT content packages to be > reinstalled. -- This message was sent by Atlassian Jira (v8.20.10#820010)