Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-9860

Merging artifacts with the ALL strategy should keep the origins for clashing bundles and their origins only

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Feature Model 1.2.10
    • Feature Model 1.2.12
    • Feature Model
    • None

    Description

      When merging 2 features that both contain the same artifact, but in different versions, both artifacts are preserved, however, the feature-origins of one of the artifact contains both features instead of just its own feature.

      For example Feature A contains:

      • bundle org.foo:bar:1.2

      And Feature B contains

      • bundle org.foo:bar:1.3

      Then once merged with the ALL strategy the resulting feature contains the artifact with (origins A,B).

      While this allows for package substitution to work between the bundles it can be problematic in cases where that is not desired for isolation purposes. As the interpretation of the origins is up to extensions, it seems better to not make the union decision in this place but leave it up to merge extensions and handlers later.

      In other words, we should change this so that the origins for version 1.2 should be just A, not both A and B.

      Attachments

        Issue Links

          Activity

            People

              davidb A. J. David Bosschaert
              davidb A. J. David Bosschaert
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: