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

jcrinstall cannot replace bundles installed by other means

    XMLWordPrintableJSON

Details

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

    Description

      Trying to update the webconsole via jcrinstall, for example, causes a second copy of the bundle to be installed, and that fails to register with the HTTP service, as the URL is already taken (which is fine).

      We could enable replacement of existing bundles by jcrinstall by having BundleResourceProcessor.installOrUpdate method check if a bundle exists in the OSGi framework, based on its Bundle-SymbolicName, compare versions with the incoming bundle, and update or install accordingly.

      That would prevent installing two different versions of the same bundle, so we might also delegate the install/update decision to a service, to allow for customizable behavior.

      Attachments

        Issue Links

          Activity

            People

              fmeschbe Felix Meschberger
              bdelacretaz Bertrand Delacretaz
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: