felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephen Kahmann (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FELIX-5196) Capabilities not matching because of case
Date Mon, 18 Apr 2016 02:37:25 GMT

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

Stephen Kahmann commented on FELIX-5196:
----------------------------------------

This is pretty important as this breaks deployment with OSGi services. For example:

{code}
<capability namespace="osgi.service">
    <attribute name="objectClass" type="List&lt;String&gt;" value="org.some.interface"/>
    <attribute name="someProperty" value="someValue"/>
    <attribute name="service.ranking" type="Long" value="10"/>
</capability>

<requirement namespace="osgi.service">
    <directive name="filter" value="(objectClass=org.some.interface)"/>
    <directive name="effective" value="active"/>
</requirement>
{code}

Anyone able to take a look at this pull request? Thanks.

> Capabilities not matching because of case
> -----------------------------------------
>
>                 Key: FELIX-5196
>                 URL: https://issues.apache.org/jira/browse/FELIX-5196
>             Project: Felix
>          Issue Type: Bug
>          Components: Bundle Repository (OBR)
>    Affects Versions: bundlerepository-2.0.6
>            Reporter: Stephen Kahmann
>
> RequirementImpl is not matching Capabilities because it is using a filter that ignores
case. The Filter lowercases the keys, but this is also not done when trying to match them.



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

Mime
View raw message