[
https://issues.apache.org/jira/browse/ARIES-1368?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14699422#comment-14699422
]
John Ross commented on ARIES-1368:
----------------------------------
Tom, in response to your deleted comment, at the framework level, a
Fragment-Host header is matched against a combination of the
Bundle-SymbolicName and Bundle-Version headers of potential hosts. At the
resource/repository level, the osgi.wiring.host (i.e. fragment host)
requirement is matched against the osgi.wiring.host capability of potential
hosts.
You are right that fragments should have an osgi.wiring.host capability. Line
185 of BundleResource should prevent that, and I don't see it happening at
runtime. If you are, in fact, seeing that, please let us know because it should
be fixed.
> Fragment resources receive the osgi.identity capability type of osgi.bundle
> but should receive osgi.fragment. Also, osgi.wiring.host capabilities and
> requirements are not computed for bundle or fragment resources.
> ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: ARIES-1368
> URL: https://issues.apache.org/jira/browse/ARIES-1368
> Project: Aries
> Issue Type: Bug
> Components: Subsystem
> Affects Versions: subsystem-core-1.0.0, subsystem-core-1.1.0,
> subsystem-core-1.2.0, subsystem-2.0.1, subsystem-2.0.2
> Reporter: Wouter Bancken
> Assignee: John Ross
> Attachments:
> OsgiIdentityCapability.OsgiIdentityCapability(Resource,BundleManifest)-CallHierarchy.jpg,
> org.apache.aries.subsystem.core.patch,
> org.apache.aries.subsystem.itests.patch,
> test-service-fragment-subsystem-1.0.1-SNAPSHOT.esa
>
>
> 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)