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

Dynamic package resolution with unresolvable or fragment package exports can lead to invalid wirings

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • resolver-1.6.0
    • Resolver
    • None
    • All

    Description

      With the latest code in trunk calling org.apache.felix.resolver.ResolverImpl.resolve(ResolveContext, Resource, Requirement, List<Capability>) with a List<Capability> containing a Capability from a fragment will lead to an invalid Wire.

      This looks similar to FELIX-4897 and appears to be a regression.

      There are two types of failures.
      1) Where the fragment has a valid host to resolve against. In this case I would expect the Wire.getProvider() to be the host revision for the fragment, but the current code returns the fragment revision

      2) Where the fragment has no valid host available. In this case I would expect no Wire to be returned in the result from the ResolverImpl.resolve call.

      Attachments

        Activity

          People

            gnodet Guillaume Nodet
            tjwatson Tom Watson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: