aries-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Raymond Augé (JIRA) <j...@apache.org>
Subject [jira] [Commented] (ARIES-1739) Specifiying a version in Require-Capability prevents registration
Date Sun, 04 Nov 2018 21:25:00 GMT

    [ https://issues.apache.org/jira/browse/ARIES-1739?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16674521#comment-16674521
] 

Raymond Augé commented on ARIES-1739:
-------------------------------------

[~graben] would you mind verifying with this snapshot that I'm just deployed? https://repository.apache.org/content/repositories/snapshots/org/apache/aries/spifly/org.apache.aries.spifly.dynamic.framework.extension/1.2-SNAPSHOT/org.apache.aries.spifly.dynamic.framework.extension-1.2-20181104.212223-3.jar

> Specifiying a version in Require-Capability prevents registration
> -----------------------------------------------------------------
>
>                 Key: ARIES-1739
>                 URL: https://issues.apache.org/jira/browse/ARIES-1739
>             Project: Aries
>          Issue Type: Bug
>          Components: SPI Fly
>    Affects Versions: spifly-1.0.8
>            Reporter: Michael Lipp
>            Assignee: Raymond Augé
>            Priority: Major
>             Fix For: spifly-1.1.1
>
>
> 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.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message