[
https://issues.apache.org/jira/browse/ARIES-1421?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
John Ross resolved ARIES-1421.
------------------------------
Resolution: Fixed
http://svn.apache.org/viewvc?rev=1705502&view=rev
> SimpleFilter attribute extraction can not handle version ranges
> ---------------------------------------------------------------
>
> Key: ARIES-1421
> URL: https://issues.apache.org/jira/browse/ARIES-1421
> Project: Aries
> Issue Type: Bug
> Components: Subsystem
> Affects Versions: subsystem-2.0.3
> Reporter: Wouter Bancken
> Fix For: subsystem-2.0.3
>
> Attachments: Screen Shot 2015-09-25 at 17.32.34.png, Screen Shot
> 2015-09-25 at 17.34.48.png
>
>
> The SimpleFilter attributes(SimpleFilter filter, Map<String, Object>
> attributes) method currently makes the wrong assumption that all attributes
> are specified by a simple equality.
> This is true for attributes like the 'osgi.wiring.package' attribute. However
> for version ranges, this assumption is incorrect.
> Version ranges specify greater than and not relations that are ignored when
> extracting attributes.
> For example,
> (&(osgi.wiring.package=org.osgi.framework)(&(version>=1.7.0)(!(version>=2.0.0))))
> will result in the attributes:
> - osgi.wiring.package: org.osgi.framework
> - version: 2.0.0
> Do note that the bug is not in parsing the filter. It is in the extraction of
> the attributes.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)