Wouter Bancken created ARIES-1421:
-------------------------------------
Summary: 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
The SimpleFilter attributes(SimpleFilter filter, Map<String, Object>
attributes) method currently makes the wrong assumption that all attributes are
specified by an equality relation.
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)