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

Reference target filter fails when using field strategy for multiple cardinality reference with multiple component instances

    XMLWordPrintableJSON

Details

    Description

      In this case the injected list seems additive, that is it contains all the references matched for previous component instances,
      as well as the one matched by the current component. As such the list contains references that do not match the target filter.

      A typical example is a Route component referencing Destinations (where Route and Destination are both DS components).
      Using configuration admin each instance of the route has its own destinations.target filter, but the injected list does not match the filter.
      When using method strategy, the target filter works as expected. Note also that the DS introspection API reports the correct
      references, but the actual injected list does not match the introspection API.

      See https://github.com/Amplifino/snippets for a bndtools workspace example. ( branch workaround contains the method strategy workaround).

      Attachments

        Activity

          People

            cziegeler Carsten Ziegeler
            karelhaeck Karel Haeck
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: