You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Carsten Ziegeler (JIRA)" <ji...@apache.org> on 2017/01/03 08:13:58 UTC

[jira] [Assigned] (FELIX-5173) Metatype service's BundleResources ignore properties provided by fragment bundles

     [ https://issues.apache.org/jira/browse/FELIX-5173?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Carsten Ziegeler reassigned FELIX-5173:
---------------------------------------

    Assignee: J.W. Janssen

> Metatype service's BundleResources ignore properties provided by fragment bundles
> ---------------------------------------------------------------------------------
>
>                 Key: FELIX-5173
>                 URL: https://issues.apache.org/jira/browse/FELIX-5173
>             Project: Felix
>          Issue Type: Bug
>          Components: Metatype Service
>    Affects Versions: metatype-1.1.2
>            Reporter: Olaf Otto
>            Assignee: J.W. Janssen
>            Priority: Minor
>             Fix For: metatype-1.1.4
>
>
> OSGi Fragment bundles may - rather similar to OSGI bundles contributing Resource Bundles for i18n - add translated properties for metatype services to a host bundle. Also, fragment bundles may add declarative service to a host bundle, thus having to contribute the corresponding properties.
> However, the current BundleResources implementation exclusively loads properties from the declaring (host) bundle using "getEntry(...)":
> {code}
> URL resURL = this.bundle.getEntry(resourceName);
> ...
> {code}
> Instead, getResource(...) should be used, which takes into account resources contributed by fragments.



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