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

Specifiying a version in Require-Capability prevents registration

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • spifly-1.0.8
    • spifly-1.2
    • SPI Fly
    • None

    Description

      The OSGi Compendium 6.0.0 provides an example for specifying a provider:

      Require-Capability:
      osgi.extender;
      filter:="(&(osgi.extender=osgi.serviceloader.processor)
      (version>=1.0)(!(version>=2.0)))"

      This fails with spi-fly because spi-fly doesn't provide a version attribute when filtering the requirements, only the type (ProviderBundleTrackerCustomizer:390).

      The example in the spi-fly documentation does not include the version in the filter. But it does also not warn you that adding it makes things fail. Having read the compendium specification first, you wouldn't expect that specifying the filter has this fatal effect.

      Attachments

        Activity

          People

            rotty3000 Raymond Augé
            drmlipp Michael Lipp
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: