[ https://issues.apache.org/jira/browse/BROOKLYN-585?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16392739#comment-16392739 ]
Aled Sage commented on BROOKLYN-585: ------------------------------------ How much do we care about this use-case? The use of a nested bundle within the zip feels strange. Our assumption for URLs was that you'd use stable URLs - if the URL was exactly the same, then the artifact would be exactly the same (so we don't have to download it yet again to double-check). I lean towards *not* fixing this. Instead we encourage people to use stable URLs, and not to avoid the pattern of embedding a bundle inside a zip. > Bundle not re-installed on change when using brooklyn.library's URL > ------------------------------------------------------------------- > > Key: BROOKLYN-585 > URL: https://issues.apache.org/jira/browse/BROOKLYN-585 > Project: Brooklyn > Issue Type: Bug > Affects Versions: 0.12.0 > Reporter: Aled Sage > Priority: Major > > A user built a big zip and uploaded it via `br catalog add ...`. Inside this > zip was another bundle. Inside the zip's catalog.bom it referenced the nested > bundle with something like: > {noformat} > brooklyn.libraries: > - classpath://example.com:my-bundle-0.1.0-SNAPSHOT.jar > {noformat} > The user modified and rebuilt the zip (including changes made to > \{{my-bundle}}), and ran `br catalog add ...` again. > However, the bundle \{{my-bundle-0.1.0-SNAPSHOT.jar}} was not updated. > The log showed: > {noformat} > 2018-03-08T14:45:41,055 DEBUG 127 o.a.b.c.c.i.CatalogUtils [qtp960400918-234] > Loading bundles in LocalManagementContext[CXm7RHiX-H18T4PLb]: > CatalogBundleDto\{symbolicName=null, version=null, > url=classpath://example.com:my-bundle-0.1.0-SNAPSHOT.jar} > 2018-03-08T14:45:41,056 DEBUG 127 o.a.b.c.c.i.CatalogUtils [qtp960400918-234] > Installation of library CatalogBundleDto\{symbolicName=null, version=null, > url=classpath://example.com:my-bundle-0.1.0-SNAPSHOT.jar}: > OsgiBundleInstallationResult[IGNORING_BUNDLE_AREADY_INSTALLED, > BasicManagedBundle\{symbolicName=com.example.my-bundle, > version=0.1.0.SNAPSHOT, > url=classpath://example.com:my-bundle-0.1.0-SNAPSHOT.jar}, Bundle > example.com.my-bundle:0.1.0.SNAPSHOT already installed as wr5u3ubbae] > {noformat} -- This message was sent by Atlassian JIRA (v7.6.3#76005)