jcrinstall cannot replace bundles installed by other means
----------------------------------------------------------

                 Key: SLING-683
                 URL: https://issues.apache.org/jira/browse/SLING-683
             Project: Sling
          Issue Type: Improvement
          Components: JCR Install
            Reporter: Bertrand Delacretaz


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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to