Uploaded image for project: 'Aries'
  1. Aries
  2. ARIES-1421

SimpleFilter attribute extraction can not handle version ranges

    XMLWordPrintableJSON

Details

    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

        1. Screen Shot 2015-09-25 at 17.34.48.png
          70 kB
          Wouter Bancken
        2. Screen Shot 2015-09-25 at 17.32.34.png
          289 kB
          Wouter Bancken

        Issue Links

          Activity

            People

              Unassigned Unassigned
              Wouter Bancken Wouter Bancken
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: