Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-5035

Sling Models Injectors should be queried in the reverse order of their service ranking value

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: Sling Models Impl 1.2.2
    • Fix Version/s: None
    • Component/s: Extensions
    • Labels:
      None

      Description

      The current version of the ModelAdaptorFactory [0] queries the Injectors in the ascending order of their service ranking value. However they should be queried in the descending order of the service ranking, to use the same logic as the BundleContext#getServiceReference(String) method [1].

      [0] - https://github.com/apache/sling/blob/f56b444b765beb1c31eed01b4c09fbda4013a580/bundles/extensions/models/impl/src/main/java/org/apache/sling/models/impl/ModelAdapterFactory.java#L411
      [1] - https://osgi.org/javadoc/r4v42/org/osgi/framework/BundleContext.html#getServiceReference(java.lang.String)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                radu.cotescu Radu Cotescu
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: