Github user geomacy commented on the issue:

    https://github.com/apache/brooklyn-server/pull/719
  
    Hm very strange - it looks as if the test hasn't pulled the 
[change](https://github.com/apache/brooklyn-server/pull/719/files#diff-774e93f2e6ad061ee24dbb975abff1d0R174),
 see 
    
    
https://builds.apache.org/job/brooklyn-server-pull-requests/ws/rest/rest-resources/src/main/java/org/apache/brooklyn/rest/resources/CatalogResource.java
    
    Copying the relevant lines as the above will be thrown away on next rebuild:
    
    ```java
            @SuppressWarnings("deprecation")
            public static BundleInstallationRestResult 
of(OsgiBundleInstallationResult in, ManagementContext mgmt, 
BrooklynRestResourceUtils brooklynU, UriInfo ui) {
                BundleInstallationRestResult result = new 
BundleInstallationRestResult();
                result.message = in.getMessage();
                result.bundle = in.getMetadata().getVersionedName().toString();
                result.code = in.getCode();
                if (in.getCatalogItemsInstalled()!=null) {
                    result.types = MutableMap.of();
                    for (String id: in.getCatalogItemsInstalled()) {
                        // TODO prefer to use RegisteredType, but we need 
transformer for those in REST
                        //RegisteredType ci = mgmt.getTypeRegistry().get(id);
                        
                        CatalogItem<?, ?> ci = 
CatalogUtils.getCatalogItemOptionalVersion(mgmt, id);
                        CatalogItemSummary summary = 
CatalogTransformer.catalogItemSummary(brooklynU, ci, ui.getBaseUriBuilder());
                        result.types.put(id, summary);
                    }
                }
                return result;
            }
    ```
    
    Note the line 
    ```
                result.bundle = in.getMetadata().getVersionedName().toString();
    ```
    
    which doesn't include the change linked above.
    
    



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to