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

Different representation between Local and Remote Resource

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: bundlerepository-2.0.2
    • Fix Version/s: None
    • Labels:
      None

      Description

      Local and remote resource have different capability/requirement even if the bundles referred are the same. This is an error specially when the bundle is a fragment. These are the "local" and "remote" requirement of the same fragment bundle:

      LOCAL
      bundle&(symbolicname=org.eclipse.nebula.widgets.datechooser)(version>=0.0.0))

      REMOTE
      fragment&(fragment=org.eclipse.nebula.widgets.datechooser)(bundle-version>=0.0.0))

      These are the "local" and "remote" capabilities of the bundle host

      LOCAL
      bundle:

      {symbolicname=org.eclipse.nebula.widgets.datechooser.rap, version=1.0.0}

      REMOTE
      bundle:

      {osgi.wiring.bundle=org.eclipse.nebula.widgets.datechooser, bundle-version=1.0.0}

      , fragment:

      {osgi.wiring.host=org.eclipse.nebula.widgets.datechooser, bundle-version=1.0.0}

      Resolving the remote fragment lead to an unsatisfied requirement.
      The error IMO is in the SpecXMLPullParser class when in the parseRequirement method besides requirement name also the filter osgi namespace are converted into felix namespace, so

      <requirement namespace='osgi.wiring.host'>
      <directive name='filter' value='(&(osgi.wiring.host=....

      becomes
      fragment&(fragment...

      insead of
      fragment&(osgi.wiring.host...

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                daniele.pirola@icteam.it Daniele Pirola
              • Votes:
                1 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: