You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@aries.apache.org by "John Ross (JIRA)" <ji...@apache.org> on 2015/08/07 15:31:46 UTC

[jira] [Commented] (ARIES-1368) BundleResource is not able to compute capabilities for fragments

    [ https://issues.apache.org/jira/browse/ARIES-1368?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14661827#comment-14661827 ] 

John Ross commented on ARIES-1368:
----------------------------------

OsgiIdentityCapability.OsgiIdentityCapability(Resource, BundleManifest) will identify all bundles as type osgi.bundle via the osgi.identity capability. For fragments, the type should be osgi.fragment.

Looking at the call hierarchy (attached), the evident consequences are the following.

(1) Fragments will be misidentified as bundles within the subsystem's local repository. This means fragments will not be discovered within the local repository when searching by osgi.identity requirement. I'm not sure if this is actually ever done as part of installation.

(2) Fragments will be misidentified as bundles within the subsystem's Subsystem-Content header if generated by the system rather than supplied by the ESA provider.

I do not believe this would affect how the fragment is ultimately installed into the runtime since the framework will generate its own osgi.identity capability. It's not clear to me how this issue would manifest itself at runtime.

Wouter, what are the specific symptoms you were experiencing?

> BundleResource is not able to compute capabilities for fragments
> ----------------------------------------------------------------
>
>                 Key: ARIES-1368
>                 URL: https://issues.apache.org/jira/browse/ARIES-1368
>             Project: Aries
>          Issue Type: Bug
>          Components: Subsystem
>    Affects Versions: subsystem-core-1.2.0
>            Reporter: Wouter Bancken
>         Attachments: OsgiIdentityCapability.OsgiIdentityCapability(Resource,BundleManifest)-CallHierarchy.jpg
>
>
> The computeOsgiIdentityCapability method of the BundleResource is not able to compute capabilities for fragments (only for bundles). 
> This is caused by the fact that the BundleResource is hardcoded to always assume a type of osgi.bundle without inspecting the manifest.
> Link to mailinglist thread: http://mail-archives.apache.org/mod_mbox/aries-user/201508.mbox/%3CCAL5nZgTOVhdAPYYFOmuV%3DPquAz1a4n_D1Rd3RBrTfu2znCSjKA%40mail.gmail.com%3E



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)