Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
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
- relates to
-
SLING-690 Update BundleResourceProcessorTest
- Closed
1.
|
Update BundleResourceProcessorTest | Closed | Unassigned |