You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Konrad Windszus (Jira)" <ji...@apache.org> on 2020/03/05 10:40:00 UTC

[jira] [Commented] (SLING-9172) Allow Sling Installer to install and handle multiple versions of bundles instead of updating

    [ https://issues.apache.org/jira/browse/SLING-9172?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17051992#comment-17051992 ] 

Konrad Windszus commented on SLING-9172:
----------------------------------------

How does this work with the DynamicClassLoader then? As currently all scripts don't define an explicit version, which version is being taken?
I think currently it picks the one from the lowest bundle id. IMHO this requires the dynamic bundle classloader to be changed to behave more predictable (i.e. always pick the newest version).

> Allow Sling Installer to install and handle multiple versions of bundles instead of updating
> --------------------------------------------------------------------------------------------
>
>                 Key: SLING-9172
>                 URL: https://issues.apache.org/jira/browse/SLING-9172
>             Project: Sling
>          Issue Type: Improvement
>          Components: Installer
>    Affects Versions: Installer Core 3.10.2
>            Reporter: Dominik Süß
>            Priority: Major
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> Sling Installer currently always updates bundles when different versions of bundles get installed. Since Apache Felix does support multiple versions of bundles to exist in parallel it should be possible to change the behavior with via property to install and uninstall multiple versions in parallel instead of updating them.
> To achieve this two changes are required:
> a) DefaultTransformer should change the EntityID of bundles to include the version to make sure the state handling of Installer handles each version as own entity
> b) BundleTaskCreator must be adjusted to create install task over update task as the detection currently checks for the existence of BSN



--
This message was sent by Atlassian Jira
(v8.3.4#803005)