You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Guo Du (JIRA)" <ji...@apache.org> on 2010/02/11 21:46:27 UTC

[jira] Created: (FELIX-2067) Fragment bundle ignored silently when the host Bundle-SymbolicName equals import package name

Fragment bundle ignored silently when the host Bundle-SymbolicName equals import package name
---------------------------------------------------------------------------------------------

                 Key: FELIX-2067
                 URL: https://issues.apache.org/jira/browse/FELIX-2067
             Project: Felix
          Issue Type: Bug
          Components: Framework
    Affects Versions: felix-2.0.2
         Environment: ANY
            Reporter: Guo Du


I reproduce the problem with two simple bundles. Attachment is the test bundles.

The test case export a package org.bug.api and import by itself.

Fail silently When the host Bundle-SymbolicName=org.bug.api
Success When the host Bundle-SymbolicName=org.bug.apix

It may caused the name used as key for maps.


====================================================================
FAILURE
====================================================================
-> install file:/tmp/fail/bug.bundle.fragment-0.0.1-SNAPSHOT.jar
Bundle ID: 3
-> install file:/tmp/fail/bug.bundle.host-0.0.1-SNAPSHOT.jar
Bundle ID: 4
-> start 4
-> ps
[   3] [Installed  ] [    1] Unnamed -
org.bug:bug.bundle.fragment:bundle:0.0.1-SNAPSHOT (0.0.1.SNAPSHOT)
[   4] [Active     ] [    1] Unnamed -
org.bug:bug.bundle.host:bundle:0.0.1-SNAPSHOT (0.0.1.SNAPSHOT)




====================================================================
EXPECTED
====================================================================
-> install file:/tmp/success/bug.bundle.fragment-0.0.1-SNAPSHOT.jar
Bundle ID: 3
-> install file:/tmp/success/bug.bundle.host-0.0.1-SNAPSHOT.jar
Bundle ID: 4
-> start 4
DEBUG: WIRE: 4.0 -> org.osgi.framework -> 0
DEBUG: FRAGMENT WIRE: 3.0 -> hosted by -> 4.0
-> ps
[   3] [Resolved   ] [    1] Unnamed -
org.bug:bug.bundle.fragment:bundle:0.0.1-SNAPSHOT (0.0.1.SNAPSHOT)
[   4] [Active     ] [    1] Unnamed -
org.bug:bug.bundle.host:bundle:0.0.1-SNAPSHOT (0.0.1.SNAPSHOT)


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


[jira] Commented: (FELIX-2067) Fragment bundle ignored silently when the host Bundle-SymbolicName equals import package name

Posted by "Guo Du (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-2067?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12832681#action_12832681 ] 

Guo Du commented on FELIX-2067:
-------------------------------

Affected version is release candidate 2.0.3 from
https://repository.apache.org/content/repositories/orgapachefelix-001/

> Fragment bundle ignored silently when the host Bundle-SymbolicName equals import package name
> ---------------------------------------------------------------------------------------------
>
>                 Key: FELIX-2067
>                 URL: https://issues.apache.org/jira/browse/FELIX-2067
>             Project: Felix
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: felix-2.0.2
>         Environment: ANY
>            Reporter: Guo Du
>         Attachments: testbundles.zip
>
>
> I reproduce the problem with two simple bundles. Attachment is the test bundles.
> The test case export a package org.bug.api and import by itself.
> Fail silently When the host Bundle-SymbolicName=org.bug.api
> Success When the host Bundle-SymbolicName=org.bug.apix
> It may caused the name used as key for maps.
> ====================================================================
> FAILURE
> ====================================================================
> -> install file:/tmp/fail/bug.bundle.fragment-0.0.1-SNAPSHOT.jar
> Bundle ID: 3
> -> install file:/tmp/fail/bug.bundle.host-0.0.1-SNAPSHOT.jar
> Bundle ID: 4
> -> start 4
> -> ps
> [   3] [Installed  ] [    1] Unnamed -
> org.bug:bug.bundle.fragment:bundle:0.0.1-SNAPSHOT (0.0.1.SNAPSHOT)
> [   4] [Active     ] [    1] Unnamed -
> org.bug:bug.bundle.host:bundle:0.0.1-SNAPSHOT (0.0.1.SNAPSHOT)
> ====================================================================
> EXPECTED
> ====================================================================
> -> install file:/tmp/success/bug.bundle.fragment-0.0.1-SNAPSHOT.jar
> Bundle ID: 3
> -> install file:/tmp/success/bug.bundle.host-0.0.1-SNAPSHOT.jar
> Bundle ID: 4
> -> start 4
> DEBUG: WIRE: 4.0 -> org.osgi.framework -> 0
> DEBUG: FRAGMENT WIRE: 3.0 -> hosted by -> 4.0
> -> ps
> [   3] [Resolved   ] [    1] Unnamed -
> org.bug:bug.bundle.fragment:bundle:0.0.1-SNAPSHOT (0.0.1.SNAPSHOT)
> [   4] [Active     ] [    1] Unnamed -
> org.bug:bug.bundle.host:bundle:0.0.1-SNAPSHOT (0.0.1.SNAPSHOT)

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


[jira] Closed: (FELIX-2067) Fragment bundle ignored silently when the host Bundle-SymbolicName equals import package name

Posted by "Guo Du (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-2067?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Guo Du closed FELIX-2067.
-------------------------


verified against 2.0.4 release candidate:
https://repository.apache.org/content/repositories/orgapachefelix-003/

Thanks very much for the quick fix.

> Fragment bundle ignored silently when the host Bundle-SymbolicName equals import package name
> ---------------------------------------------------------------------------------------------
>
>                 Key: FELIX-2067
>                 URL: https://issues.apache.org/jira/browse/FELIX-2067
>             Project: Felix
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: felix-2.0.3
>         Environment: ANY
>            Reporter: Guo Du
>            Assignee: Richard S. Hall
>             Fix For: felix-2.0.4
>
>         Attachments: testbundles.zip
>
>
> I reproduce the problem with two simple bundles. Attachment is the test bundles.
> The test case export a package org.bug.api and import by itself.
> Fail silently When the host Bundle-SymbolicName=org.bug.api
> Success When the host Bundle-SymbolicName=org.bug.apix
> It may caused the name used as key for maps.
> ====================================================================
> FAILURE
> ====================================================================
> -> install file:/tmp/fail/bug.bundle.fragment-0.0.1-SNAPSHOT.jar
> Bundle ID: 3
> -> install file:/tmp/fail/bug.bundle.host-0.0.1-SNAPSHOT.jar
> Bundle ID: 4
> -> start 4
> -> ps
> [   3] [Installed  ] [    1] Unnamed -
> org.bug:bug.bundle.fragment:bundle:0.0.1-SNAPSHOT (0.0.1.SNAPSHOT)
> [   4] [Active     ] [    1] Unnamed -
> org.bug:bug.bundle.host:bundle:0.0.1-SNAPSHOT (0.0.1.SNAPSHOT)
> ====================================================================
> EXPECTED
> ====================================================================
> -> install file:/tmp/success/bug.bundle.fragment-0.0.1-SNAPSHOT.jar
> Bundle ID: 3
> -> install file:/tmp/success/bug.bundle.host-0.0.1-SNAPSHOT.jar
> Bundle ID: 4
> -> start 4
> DEBUG: WIRE: 4.0 -> org.osgi.framework -> 0
> DEBUG: FRAGMENT WIRE: 3.0 -> hosted by -> 4.0
> -> ps
> [   3] [Resolved   ] [    1] Unnamed -
> org.bug:bug.bundle.fragment:bundle:0.0.1-SNAPSHOT (0.0.1.SNAPSHOT)
> [   4] [Active     ] [    1] Unnamed -
> org.bug:bug.bundle.host:bundle:0.0.1-SNAPSHOT (0.0.1.SNAPSHOT)

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


[jira] Updated: (FELIX-2067) Fragment bundle ignored silently when the host Bundle-SymbolicName equals import package name

Posted by "Richard S. Hall (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-2067?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Richard S. Hall updated FELIX-2067:
-----------------------------------

    Affects Version/s:     (was: felix-2.0.2)
                       felix-2.0.3
        Fix Version/s: felix-3.0.0

> Fragment bundle ignored silently when the host Bundle-SymbolicName equals import package name
> ---------------------------------------------------------------------------------------------
>
>                 Key: FELIX-2067
>                 URL: https://issues.apache.org/jira/browse/FELIX-2067
>             Project: Felix
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: felix-2.0.3
>         Environment: ANY
>            Reporter: Guo Du
>            Assignee: Richard S. Hall
>             Fix For: felix-3.0.0
>
>         Attachments: testbundles.zip
>
>
> I reproduce the problem with two simple bundles. Attachment is the test bundles.
> The test case export a package org.bug.api and import by itself.
> Fail silently When the host Bundle-SymbolicName=org.bug.api
> Success When the host Bundle-SymbolicName=org.bug.apix
> It may caused the name used as key for maps.
> ====================================================================
> FAILURE
> ====================================================================
> -> install file:/tmp/fail/bug.bundle.fragment-0.0.1-SNAPSHOT.jar
> Bundle ID: 3
> -> install file:/tmp/fail/bug.bundle.host-0.0.1-SNAPSHOT.jar
> Bundle ID: 4
> -> start 4
> -> ps
> [   3] [Installed  ] [    1] Unnamed -
> org.bug:bug.bundle.fragment:bundle:0.0.1-SNAPSHOT (0.0.1.SNAPSHOT)
> [   4] [Active     ] [    1] Unnamed -
> org.bug:bug.bundle.host:bundle:0.0.1-SNAPSHOT (0.0.1.SNAPSHOT)
> ====================================================================
> EXPECTED
> ====================================================================
> -> install file:/tmp/success/bug.bundle.fragment-0.0.1-SNAPSHOT.jar
> Bundle ID: 3
> -> install file:/tmp/success/bug.bundle.host-0.0.1-SNAPSHOT.jar
> Bundle ID: 4
> -> start 4
> DEBUG: WIRE: 4.0 -> org.osgi.framework -> 0
> DEBUG: FRAGMENT WIRE: 3.0 -> hosted by -> 4.0
> -> ps
> [   3] [Resolved   ] [    1] Unnamed -
> org.bug:bug.bundle.fragment:bundle:0.0.1-SNAPSHOT (0.0.1.SNAPSHOT)
> [   4] [Active     ] [    1] Unnamed -
> org.bug:bug.bundle.host:bundle:0.0.1-SNAPSHOT (0.0.1.SNAPSHOT)

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


[jira] Resolved: (FELIX-2067) Fragment bundle ignored silently when the host Bundle-SymbolicName equals import package name

Posted by "Richard S. Hall (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-2067?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Richard S. Hall resolved FELIX-2067.
------------------------------------

    Resolution: Fixed

I am resolving this issue, since it worked for me. Please verify against trunk. It looks like we'll cut a 2.0.4 release, which will hopefully be our last for 2.0.x.

> Fragment bundle ignored silently when the host Bundle-SymbolicName equals import package name
> ---------------------------------------------------------------------------------------------
>
>                 Key: FELIX-2067
>                 URL: https://issues.apache.org/jira/browse/FELIX-2067
>             Project: Felix
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: felix-2.0.3
>         Environment: ANY
>            Reporter: Guo Du
>            Assignee: Richard S. Hall
>             Fix For: felix-2.0.4
>
>         Attachments: testbundles.zip
>
>
> I reproduce the problem with two simple bundles. Attachment is the test bundles.
> The test case export a package org.bug.api and import by itself.
> Fail silently When the host Bundle-SymbolicName=org.bug.api
> Success When the host Bundle-SymbolicName=org.bug.apix
> It may caused the name used as key for maps.
> ====================================================================
> FAILURE
> ====================================================================
> -> install file:/tmp/fail/bug.bundle.fragment-0.0.1-SNAPSHOT.jar
> Bundle ID: 3
> -> install file:/tmp/fail/bug.bundle.host-0.0.1-SNAPSHOT.jar
> Bundle ID: 4
> -> start 4
> -> ps
> [   3] [Installed  ] [    1] Unnamed -
> org.bug:bug.bundle.fragment:bundle:0.0.1-SNAPSHOT (0.0.1.SNAPSHOT)
> [   4] [Active     ] [    1] Unnamed -
> org.bug:bug.bundle.host:bundle:0.0.1-SNAPSHOT (0.0.1.SNAPSHOT)
> ====================================================================
> EXPECTED
> ====================================================================
> -> install file:/tmp/success/bug.bundle.fragment-0.0.1-SNAPSHOT.jar
> Bundle ID: 3
> -> install file:/tmp/success/bug.bundle.host-0.0.1-SNAPSHOT.jar
> Bundle ID: 4
> -> start 4
> DEBUG: WIRE: 4.0 -> org.osgi.framework -> 0
> DEBUG: FRAGMENT WIRE: 3.0 -> hosted by -> 4.0
> -> ps
> [   3] [Resolved   ] [    1] Unnamed -
> org.bug:bug.bundle.fragment:bundle:0.0.1-SNAPSHOT (0.0.1.SNAPSHOT)
> [   4] [Active     ] [    1] Unnamed -
> org.bug:bug.bundle.host:bundle:0.0.1-SNAPSHOT (0.0.1.SNAPSHOT)

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


[jira] Updated: (FELIX-2067) Fragment bundle ignored silently when the host Bundle-SymbolicName equals import package name

Posted by "Guo Du (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-2067?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Guo Du updated FELIX-2067:
--------------------------

    Attachment: testbundles.zip

Related email discussion:
http://www.mail-archive.com/dev@felix.apache.org/msg14145.html

Related JIRA:
https://issues.apache.org/jira/browse/FELIX-1919

> Fragment bundle ignored silently when the host Bundle-SymbolicName equals import package name
> ---------------------------------------------------------------------------------------------
>
>                 Key: FELIX-2067
>                 URL: https://issues.apache.org/jira/browse/FELIX-2067
>             Project: Felix
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: felix-2.0.2
>         Environment: ANY
>            Reporter: Guo Du
>         Attachments: testbundles.zip
>
>
> I reproduce the problem with two simple bundles. Attachment is the test bundles.
> The test case export a package org.bug.api and import by itself.
> Fail silently When the host Bundle-SymbolicName=org.bug.api
> Success When the host Bundle-SymbolicName=org.bug.apix
> It may caused the name used as key for maps.
> ====================================================================
> FAILURE
> ====================================================================
> -> install file:/tmp/fail/bug.bundle.fragment-0.0.1-SNAPSHOT.jar
> Bundle ID: 3
> -> install file:/tmp/fail/bug.bundle.host-0.0.1-SNAPSHOT.jar
> Bundle ID: 4
> -> start 4
> -> ps
> [   3] [Installed  ] [    1] Unnamed -
> org.bug:bug.bundle.fragment:bundle:0.0.1-SNAPSHOT (0.0.1.SNAPSHOT)
> [   4] [Active     ] [    1] Unnamed -
> org.bug:bug.bundle.host:bundle:0.0.1-SNAPSHOT (0.0.1.SNAPSHOT)
> ====================================================================
> EXPECTED
> ====================================================================
> -> install file:/tmp/success/bug.bundle.fragment-0.0.1-SNAPSHOT.jar
> Bundle ID: 3
> -> install file:/tmp/success/bug.bundle.host-0.0.1-SNAPSHOT.jar
> Bundle ID: 4
> -> start 4
> DEBUG: WIRE: 4.0 -> org.osgi.framework -> 0
> DEBUG: FRAGMENT WIRE: 3.0 -> hosted by -> 4.0
> -> ps
> [   3] [Resolved   ] [    1] Unnamed -
> org.bug:bug.bundle.fragment:bundle:0.0.1-SNAPSHOT (0.0.1.SNAPSHOT)
> [   4] [Active     ] [    1] Unnamed -
> org.bug:bug.bundle.host:bundle:0.0.1-SNAPSHOT (0.0.1.SNAPSHOT)

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


[jira] Assigned: (FELIX-2067) Fragment bundle ignored silently when the host Bundle-SymbolicName equals import package name

Posted by "Richard S. Hall (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-2067?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Richard S. Hall reassigned FELIX-2067:
--------------------------------------

    Assignee: Richard S. Hall

> Fragment bundle ignored silently when the host Bundle-SymbolicName equals import package name
> ---------------------------------------------------------------------------------------------
>
>                 Key: FELIX-2067
>                 URL: https://issues.apache.org/jira/browse/FELIX-2067
>             Project: Felix
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: felix-2.0.2
>         Environment: ANY
>            Reporter: Guo Du
>            Assignee: Richard S. Hall
>         Attachments: testbundles.zip
>
>
> I reproduce the problem with two simple bundles. Attachment is the test bundles.
> The test case export a package org.bug.api and import by itself.
> Fail silently When the host Bundle-SymbolicName=org.bug.api
> Success When the host Bundle-SymbolicName=org.bug.apix
> It may caused the name used as key for maps.
> ====================================================================
> FAILURE
> ====================================================================
> -> install file:/tmp/fail/bug.bundle.fragment-0.0.1-SNAPSHOT.jar
> Bundle ID: 3
> -> install file:/tmp/fail/bug.bundle.host-0.0.1-SNAPSHOT.jar
> Bundle ID: 4
> -> start 4
> -> ps
> [   3] [Installed  ] [    1] Unnamed -
> org.bug:bug.bundle.fragment:bundle:0.0.1-SNAPSHOT (0.0.1.SNAPSHOT)
> [   4] [Active     ] [    1] Unnamed -
> org.bug:bug.bundle.host:bundle:0.0.1-SNAPSHOT (0.0.1.SNAPSHOT)
> ====================================================================
> EXPECTED
> ====================================================================
> -> install file:/tmp/success/bug.bundle.fragment-0.0.1-SNAPSHOT.jar
> Bundle ID: 3
> -> install file:/tmp/success/bug.bundle.host-0.0.1-SNAPSHOT.jar
> Bundle ID: 4
> -> start 4
> DEBUG: WIRE: 4.0 -> org.osgi.framework -> 0
> DEBUG: FRAGMENT WIRE: 3.0 -> hosted by -> 4.0
> -> ps
> [   3] [Resolved   ] [    1] Unnamed -
> org.bug:bug.bundle.fragment:bundle:0.0.1-SNAPSHOT (0.0.1.SNAPSHOT)
> [   4] [Active     ] [    1] Unnamed -
> org.bug:bug.bundle.host:bundle:0.0.1-SNAPSHOT (0.0.1.SNAPSHOT)

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


[jira] Updated: (FELIX-2067) Fragment bundle ignored silently when the host Bundle-SymbolicName equals import package name

Posted by "Richard S. Hall (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-2067?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Richard S. Hall updated FELIX-2067:
-----------------------------------

    Affects Version/s: felix-2.0.2

> Fragment bundle ignored silently when the host Bundle-SymbolicName equals import package name
> ---------------------------------------------------------------------------------------------
>
>                 Key: FELIX-2067
>                 URL: https://issues.apache.org/jira/browse/FELIX-2067
>             Project: Felix
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: felix-2.0.2, felix-2.0.3
>         Environment: ANY
>            Reporter: Guo Du
>            Assignee: Richard S. Hall
>             Fix For: felix-3.0.0
>
>         Attachments: testbundles.zip
>
>
> I reproduce the problem with two simple bundles. Attachment is the test bundles.
> The test case export a package org.bug.api and import by itself.
> Fail silently When the host Bundle-SymbolicName=org.bug.api
> Success When the host Bundle-SymbolicName=org.bug.apix
> It may caused the name used as key for maps.
> ====================================================================
> FAILURE
> ====================================================================
> -> install file:/tmp/fail/bug.bundle.fragment-0.0.1-SNAPSHOT.jar
> Bundle ID: 3
> -> install file:/tmp/fail/bug.bundle.host-0.0.1-SNAPSHOT.jar
> Bundle ID: 4
> -> start 4
> -> ps
> [   3] [Installed  ] [    1] Unnamed -
> org.bug:bug.bundle.fragment:bundle:0.0.1-SNAPSHOT (0.0.1.SNAPSHOT)
> [   4] [Active     ] [    1] Unnamed -
> org.bug:bug.bundle.host:bundle:0.0.1-SNAPSHOT (0.0.1.SNAPSHOT)
> ====================================================================
> EXPECTED
> ====================================================================
> -> install file:/tmp/success/bug.bundle.fragment-0.0.1-SNAPSHOT.jar
> Bundle ID: 3
> -> install file:/tmp/success/bug.bundle.host-0.0.1-SNAPSHOT.jar
> Bundle ID: 4
> -> start 4
> DEBUG: WIRE: 4.0 -> org.osgi.framework -> 0
> DEBUG: FRAGMENT WIRE: 3.0 -> hosted by -> 4.0
> -> ps
> [   3] [Resolved   ] [    1] Unnamed -
> org.bug:bug.bundle.fragment:bundle:0.0.1-SNAPSHOT (0.0.1.SNAPSHOT)
> [   4] [Active     ] [    1] Unnamed -
> org.bug:bug.bundle.host:bundle:0.0.1-SNAPSHOT (0.0.1.SNAPSHOT)

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


[jira] Commented: (FELIX-2067) Fragment bundle ignored silently when the host Bundle-SymbolicName equals import package name

Posted by "Richard S. Hall (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-2067?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12832855#action_12832855 ] 

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

This issue was being caused by the new code for aggregating host/fragment dependencies. It needed to handling different types of dependencies (e.g., host, bundle, package) separately, but it was merging them all together. This allowed requirements with the same target name (e.g., bundle symbolic, package name) to interfere with each other, causing the requirements to be calculated incorrectly.

I have committed a patch for this issue against the trunk for any further maintenance releases to Framework 2.0.x. However, I verified that this bug was not introduced into the Framework 3.0.0 code in my sandbox. I plan to move my sandbox code to trunk shortly. So, I currently am undecided about how to handle this issue.

> Fragment bundle ignored silently when the host Bundle-SymbolicName equals import package name
> ---------------------------------------------------------------------------------------------
>
>                 Key: FELIX-2067
>                 URL: https://issues.apache.org/jira/browse/FELIX-2067
>             Project: Felix
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: felix-2.0.3
>         Environment: ANY
>            Reporter: Guo Du
>            Assignee: Richard S. Hall
>             Fix For: felix-3.0.0
>
>         Attachments: testbundles.zip
>
>
> I reproduce the problem with two simple bundles. Attachment is the test bundles.
> The test case export a package org.bug.api and import by itself.
> Fail silently When the host Bundle-SymbolicName=org.bug.api
> Success When the host Bundle-SymbolicName=org.bug.apix
> It may caused the name used as key for maps.
> ====================================================================
> FAILURE
> ====================================================================
> -> install file:/tmp/fail/bug.bundle.fragment-0.0.1-SNAPSHOT.jar
> Bundle ID: 3
> -> install file:/tmp/fail/bug.bundle.host-0.0.1-SNAPSHOT.jar
> Bundle ID: 4
> -> start 4
> -> ps
> [   3] [Installed  ] [    1] Unnamed -
> org.bug:bug.bundle.fragment:bundle:0.0.1-SNAPSHOT (0.0.1.SNAPSHOT)
> [   4] [Active     ] [    1] Unnamed -
> org.bug:bug.bundle.host:bundle:0.0.1-SNAPSHOT (0.0.1.SNAPSHOT)
> ====================================================================
> EXPECTED
> ====================================================================
> -> install file:/tmp/success/bug.bundle.fragment-0.0.1-SNAPSHOT.jar
> Bundle ID: 3
> -> install file:/tmp/success/bug.bundle.host-0.0.1-SNAPSHOT.jar
> Bundle ID: 4
> -> start 4
> DEBUG: WIRE: 4.0 -> org.osgi.framework -> 0
> DEBUG: FRAGMENT WIRE: 3.0 -> hosted by -> 4.0
> -> ps
> [   3] [Resolved   ] [    1] Unnamed -
> org.bug:bug.bundle.fragment:bundle:0.0.1-SNAPSHOT (0.0.1.SNAPSHOT)
> [   4] [Active     ] [    1] Unnamed -
> org.bug:bug.bundle.host:bundle:0.0.1-SNAPSHOT (0.0.1.SNAPSHOT)

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


[jira] Updated: (FELIX-2067) Fragment bundle ignored silently when the host Bundle-SymbolicName equals import package name

Posted by "Richard S. Hall (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-2067?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Richard S. Hall updated FELIX-2067:
-----------------------------------

    Fix Version/s:     (was: felix-3.0.0)
                   felix-2.0.4

> Fragment bundle ignored silently when the host Bundle-SymbolicName equals import package name
> ---------------------------------------------------------------------------------------------
>
>                 Key: FELIX-2067
>                 URL: https://issues.apache.org/jira/browse/FELIX-2067
>             Project: Felix
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: felix-2.0.3
>         Environment: ANY
>            Reporter: Guo Du
>            Assignee: Richard S. Hall
>             Fix For: felix-2.0.4
>
>         Attachments: testbundles.zip
>
>
> I reproduce the problem with two simple bundles. Attachment is the test bundles.
> The test case export a package org.bug.api and import by itself.
> Fail silently When the host Bundle-SymbolicName=org.bug.api
> Success When the host Bundle-SymbolicName=org.bug.apix
> It may caused the name used as key for maps.
> ====================================================================
> FAILURE
> ====================================================================
> -> install file:/tmp/fail/bug.bundle.fragment-0.0.1-SNAPSHOT.jar
> Bundle ID: 3
> -> install file:/tmp/fail/bug.bundle.host-0.0.1-SNAPSHOT.jar
> Bundle ID: 4
> -> start 4
> -> ps
> [   3] [Installed  ] [    1] Unnamed -
> org.bug:bug.bundle.fragment:bundle:0.0.1-SNAPSHOT (0.0.1.SNAPSHOT)
> [   4] [Active     ] [    1] Unnamed -
> org.bug:bug.bundle.host:bundle:0.0.1-SNAPSHOT (0.0.1.SNAPSHOT)
> ====================================================================
> EXPECTED
> ====================================================================
> -> install file:/tmp/success/bug.bundle.fragment-0.0.1-SNAPSHOT.jar
> Bundle ID: 3
> -> install file:/tmp/success/bug.bundle.host-0.0.1-SNAPSHOT.jar
> Bundle ID: 4
> -> start 4
> DEBUG: WIRE: 4.0 -> org.osgi.framework -> 0
> DEBUG: FRAGMENT WIRE: 3.0 -> hosted by -> 4.0
> -> ps
> [   3] [Resolved   ] [    1] Unnamed -
> org.bug:bug.bundle.fragment:bundle:0.0.1-SNAPSHOT (0.0.1.SNAPSHOT)
> [   4] [Active     ] [    1] Unnamed -
> org.bug:bug.bundle.host:bundle:0.0.1-SNAPSHOT (0.0.1.SNAPSHOT)

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


[jira] Updated: (FELIX-2067) Fragment bundle ignored silently when the host Bundle-SymbolicName equals import package name

Posted by "Richard S. Hall (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-2067?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Richard S. Hall updated FELIX-2067:
-----------------------------------

    Affects Version/s:     (was: felix-2.0.2)

> Fragment bundle ignored silently when the host Bundle-SymbolicName equals import package name
> ---------------------------------------------------------------------------------------------
>
>                 Key: FELIX-2067
>                 URL: https://issues.apache.org/jira/browse/FELIX-2067
>             Project: Felix
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: felix-2.0.3
>         Environment: ANY
>            Reporter: Guo Du
>            Assignee: Richard S. Hall
>             Fix For: felix-3.0.0
>
>         Attachments: testbundles.zip
>
>
> I reproduce the problem with two simple bundles. Attachment is the test bundles.
> The test case export a package org.bug.api and import by itself.
> Fail silently When the host Bundle-SymbolicName=org.bug.api
> Success When the host Bundle-SymbolicName=org.bug.apix
> It may caused the name used as key for maps.
> ====================================================================
> FAILURE
> ====================================================================
> -> install file:/tmp/fail/bug.bundle.fragment-0.0.1-SNAPSHOT.jar
> Bundle ID: 3
> -> install file:/tmp/fail/bug.bundle.host-0.0.1-SNAPSHOT.jar
> Bundle ID: 4
> -> start 4
> -> ps
> [   3] [Installed  ] [    1] Unnamed -
> org.bug:bug.bundle.fragment:bundle:0.0.1-SNAPSHOT (0.0.1.SNAPSHOT)
> [   4] [Active     ] [    1] Unnamed -
> org.bug:bug.bundle.host:bundle:0.0.1-SNAPSHOT (0.0.1.SNAPSHOT)
> ====================================================================
> EXPECTED
> ====================================================================
> -> install file:/tmp/success/bug.bundle.fragment-0.0.1-SNAPSHOT.jar
> Bundle ID: 3
> -> install file:/tmp/success/bug.bundle.host-0.0.1-SNAPSHOT.jar
> Bundle ID: 4
> -> start 4
> DEBUG: WIRE: 4.0 -> org.osgi.framework -> 0
> DEBUG: FRAGMENT WIRE: 3.0 -> hosted by -> 4.0
> -> ps
> [   3] [Resolved   ] [    1] Unnamed -
> org.bug:bug.bundle.fragment:bundle:0.0.1-SNAPSHOT (0.0.1.SNAPSHOT)
> [   4] [Active     ] [    1] Unnamed -
> org.bug:bug.bundle.host:bundle:0.0.1-SNAPSHOT (0.0.1.SNAPSHOT)

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


[jira] Issue Comment Edited: (FELIX-2067) Fragment bundle ignored silently when the host Bundle-SymbolicName equals import package name

Posted by "Richard S. Hall (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/FELIX-2067?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12832855#action_12832855 ] 

Richard S. Hall edited comment on FELIX-2067 at 2/12/10 6:03 AM:
-----------------------------------------------------------------

This issue was being caused by the new code for aggregating host/fragment dependencies. It needed to handle different types of dependencies (e.g., host, bundle, package) separately, but it was merging them all together. This allowed requirements with the same target name (e.g., bundle symbolic, package name) to interfere with each other, causing the requirements to be calculated incorrectly.

I have committed a patch for this issue against the trunk for any further maintenance releases to Framework 2.0.x. However, I verified that this bug was not introduced into the Framework 3.0.0 code in my sandbox. I plan to move my sandbox code to trunk shortly. So, I am currently undecided about how to handle this issue.

      was (Author: rickhall):
    This issue was being caused by the new code for aggregating host/fragment dependencies. It needed to handling different types of dependencies (e.g., host, bundle, package) separately, but it was merging them all together. This allowed requirements with the same target name (e.g., bundle symbolic, package name) to interfere with each other, causing the requirements to be calculated incorrectly.

I have committed a patch for this issue against the trunk for any further maintenance releases to Framework 2.0.x. However, I verified that this bug was not introduced into the Framework 3.0.0 code in my sandbox. I plan to move my sandbox code to trunk shortly. So, I currently am undecided about how to handle this issue.
  
> Fragment bundle ignored silently when the host Bundle-SymbolicName equals import package name
> ---------------------------------------------------------------------------------------------
>
>                 Key: FELIX-2067
>                 URL: https://issues.apache.org/jira/browse/FELIX-2067
>             Project: Felix
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: felix-2.0.3
>         Environment: ANY
>            Reporter: Guo Du
>            Assignee: Richard S. Hall
>             Fix For: felix-3.0.0
>
>         Attachments: testbundles.zip
>
>
> I reproduce the problem with two simple bundles. Attachment is the test bundles.
> The test case export a package org.bug.api and import by itself.
> Fail silently When the host Bundle-SymbolicName=org.bug.api
> Success When the host Bundle-SymbolicName=org.bug.apix
> It may caused the name used as key for maps.
> ====================================================================
> FAILURE
> ====================================================================
> -> install file:/tmp/fail/bug.bundle.fragment-0.0.1-SNAPSHOT.jar
> Bundle ID: 3
> -> install file:/tmp/fail/bug.bundle.host-0.0.1-SNAPSHOT.jar
> Bundle ID: 4
> -> start 4
> -> ps
> [   3] [Installed  ] [    1] Unnamed -
> org.bug:bug.bundle.fragment:bundle:0.0.1-SNAPSHOT (0.0.1.SNAPSHOT)
> [   4] [Active     ] [    1] Unnamed -
> org.bug:bug.bundle.host:bundle:0.0.1-SNAPSHOT (0.0.1.SNAPSHOT)
> ====================================================================
> EXPECTED
> ====================================================================
> -> install file:/tmp/success/bug.bundle.fragment-0.0.1-SNAPSHOT.jar
> Bundle ID: 3
> -> install file:/tmp/success/bug.bundle.host-0.0.1-SNAPSHOT.jar
> Bundle ID: 4
> -> start 4
> DEBUG: WIRE: 4.0 -> org.osgi.framework -> 0
> DEBUG: FRAGMENT WIRE: 3.0 -> hosted by -> 4.0
> -> ps
> [   3] [Resolved   ] [    1] Unnamed -
> org.bug:bug.bundle.fragment:bundle:0.0.1-SNAPSHOT (0.0.1.SNAPSHOT)
> [   4] [Active     ] [    1] Unnamed -
> org.bug:bug.bundle.host:bundle:0.0.1-SNAPSHOT (0.0.1.SNAPSHOT)

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