You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Richard S. Hall (JIRA)" <ji...@apache.org> on 2010/04/09 15:03:51 UTC

[jira] Commented: (FELIX-2265) bundle-version of Fragment-Host is resolving outside of specified range

    [ https://issues.apache.org/jira/browse/FELIX-2265?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12855378#action_12855378 ] 

Richard S. Hall commented on FELIX-2265:
----------------------------------------

I created this host:

Bundle-ManifestVersion: 2
Bundle-SymbolicName: host
Export-Package: foo
Bundle-Version: 1.6.1

And this fragment:

Bundle-ManifestVersion: 2
Bundle-SymbolicName: fragment
Bundle-Version: 1.6.2
Fragment-Host: host; bundle-version="1.6.2"
Export-Package: bar

I have tried this on 2.0.4 and 2.0.5-SNAPSHOT and I get the correct result in both:

-> ps
START LEVEL 1
   ID   State         Level  Name
[   0] [Active     ] [    0] System Bundle (2.0.4)
[   1] [Active     ] [    1] Apache Felix Bundle Repository (1.4.3)
[   2] [Active     ] [    1] Apache Felix Shell Service (1.4.2)
[   3] [Active     ] [    1] Apache Felix Shell TUI (1.4.1)
[   4] [Installed  ] [    1] host (1.6.1)
[   5] [Installed  ] [    1] fragment (1.6.2)
-> resolve 5
WARNING: Unable to resolve bundle 5 (org.osgi.framework.BundleException: Unresolved constraint in bundle fragment [5]: host; (&(bundle-symbolic-name=host)(bundle-version>=1.6.2)))
-> resolve 4
-> ps
START LEVEL 1
   ID   State         Level  Name
[   0] [Active     ] [    0] System Bundle (2.0.4)
[   1] [Active     ] [    1] Apache Felix Bundle Repository (1.4.3)
[   2] [Active     ] [    1] Apache Felix Shell Service (1.4.2)
[   3] [Active     ] [    1] Apache Felix Shell TUI (1.4.1)
[   4] [Resolved   ] [    1] host (1.6.1)
[   5] [Installed  ] [    1] fragment (1.6.2)
-> inspect p c 4
host [4] exports packages:
--------------------------
foo; version=0.0.0
-> 

So, either there is more than meets the eye to your scenario or else something else is going on.

If you can reproduce this, then please attach the two manifests with the exact steps to reproduce the issue. Thanks.

> bundle-version of Fragment-Host is resolving outside of specified range
> -----------------------------------------------------------------------
>
>                 Key: FELIX-2265
>                 URL: https://issues.apache.org/jira/browse/FELIX-2265
>             Project: Felix
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: felix-2.0.4
>         Environment: Java 5, MacOSX 10.5.8, felix 2.0.4
>            Reporter: Jean-Guy Speton
>
> In my application the following bundle host:
> Bundle-SymbolicName: com.mypackage 
> Bundle-Version: 1.6.1 
> is resolving this fragment:
> Bundle-SymbolicName: com.mypackage.frag 
> Bundle-Version: 1.6.2 
> Fragment-Host: com.mypackage; bundle-version="1.6.2" 
> Expectation is that the fragment would resolve to only versions 1.6.2 or higher of the host bundle.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.