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

Improve bundle update handling

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • JCR Installer 3.0.0
    • JCR Installer 3.0.0
    • Installer
    • None

    Description

      JCR Install's support for bundle installation, update, uninstallation currently works on the bundle "file" names to check for bundle existence and update.

      Consider the name of bundle files to contain their version numbers, so that for example

      org.apache.sling.api-2.0.2-incubator.jar
      and org.apache.sling.api-2.0.3-incubator-SNAPSHOT.jar

      refer to the same bundle (as per its symbolic name) but different versions of it.

      So to upgrade the org.apache.sling.api bundle we could – in a single JCR Session transaction – remove the file org.apache.sling.api-2.0.2-incubator.jar and add the new file org.apache.sling.api-2.0.3-incubator-SNAPSHOT.jar. This causes JCR Install to recognize and act as follows:

      • uninstall the bundle since the bundle file has been removed
      • install the bundle since the bundle file has been added

      What should in fact happen is, that JCR Install recognizes, that the new file is really an update for the bundle installed from the old (now removed) file.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              fmeschbe Felix Meschberger
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: