Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
subsystem-2.0.4
-
None
Description
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.
Attachments
Attachments
Issue Links
- blocks
-
ARIES-1377 Subsystems 2.0.4 Release
- Closed