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 23:08:25 GMT

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

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

Good catch:

{code}
Dictionary propertyDict = new MapToDictionary(capability.getPropertiesAsMap());
        
return m_name.equals(capability.getName()) &&
                m_filter.match(propertyDict) &&
                (m_filter.toString().contains("(mandatory:<*") || propertyDict.get("mandatory:")
== null);
{code}

> 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