felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard S. Hall (JIRA)" <j...@apache.org>
Subject [jira] Commented: (FELIX-2532) bundle-symbolic-name constraint is not handled by the OBR resolver
Date Wed, 18 Aug 2010 16:43:18 GMT

    [ https://issues.apache.org/jira/browse/FELIX-2532?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12899905#action_12899905

Richard S. Hall commented on FELIX-2532:

There are a couple issues here:

1. I believe that OBR doesn't handle implicit attributes (i.e., bundle-symbolic-name and bundle-version)
on exported packages at all. The proposed patch is only a partial solution for this limitation,
e.g., it doesn't address bundle-version.

2. The proposed patch is not really correct either, since it simply replaces the implementation-specific
system bundle name with the generic one (i.e., system.bundle), but what happens if someone
is importing it with the implementation name? For system bundle, there actually needs to be
a special case where this attribute is multi-valued.

> bundle-symbolic-name constraint is not handled by the OBR resolver
> ------------------------------------------------------------------
>                 Key: FELIX-2532
>                 URL: https://issues.apache.org/jira/browse/FELIX-2532
>             Project: Felix
>          Issue Type: Bug
>          Components: Bundle Repository (OBR)
>    Affects Versions: bundlerepository-1.6.4
>            Reporter: Arjun Panday
>            Priority: Critical
>         Attachments: DataModelHelperImpl.java
> I have a bundle importing javax.xml.bind specifically from the system.bundle. The import
looks like this:
> Import-Package: javax.xml.bind;bundle-symbolic-name=system.bundle
> Bindex translates the import into the following requirement:
>     <require extend='false' filter='(&amp;(package=javax.xml.bind)(version&gt;=0.0.0)(bundle-symbolic-name=system.bundle)(mandatory:&lt;*bundle-symbolic-name))'
multiple='false' name='package' optional='false'>   
>       Import package javax.xml.bind
>     </require>
> This requirement is not resolved by the RepositoryAdmin service.
> When I loop over resolver.getUnsatisfiedRequirements(), I log:
> Unsatisfied OBR requirement (&(package=javax.xml.bind)(bundle-symbolic-name=system.bundle)(mandatory:<*bundle-symbolic-name))
> It seems that the bundle-symbolic-name constraint is not handled by the resolver.
> /arjun

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

View raw message