Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
JCR Resource 3.1.0
-
None
Description
If multiple URIProvider services are provided the order is currently non-deterministic due to the code in https://github.com/apache/sling-org-apache-sling-jcr-resource/blob/5af8c2bb5728184f22d3098967a57d5f1902789c/src/main/java/org/apache/sling/jcr/resource/internal/helper/jcr/JcrResourceProvider.java#L156-L168. Instead the implementations should be ordered according to the rules of https://docs.osgi.org/javadoc/osgi.core/8.0.0/org/osgi/framework/ServiceReference.html#compareTo-java.lang.Object-
Attachments
Issue Links
- links to