Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-2067

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • framework-2.0.3
    • framework-2.0.4
    • Framework
    • ANY

    Description

      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)

      Attachments

        1. testbundles.zip
          9 kB
          Guo Du

        Activity

          People

            rickhall Richard S. Hall
            mrduguo Guo Du
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: