kwin commented on pull request #36: URL: https://github.com/apache/sling-org-apache-sling-api/pull/36#issuecomment-953631378
> that they throw an UnsupportedOperationException - but the default implementation in the SPI does not do this. That exception is thrown in https://github.com/apache/sling-org-apache-sling-resourceresolver/blob/ea9a34577edf7eff53b5a8f8bd4f1417a72af5aa/src/main/java/org/apache/sling/resourceresolver/impl/helper/ResourceResolverControl.java#L395 in case there is no modifiable provider for that path. My understanding from the code is: 1. Providers throw `PersistenceException` in case something goes wrong 2. ResourceResolverImpl throws `UOE` in case no fitting provider is found So the only question for the new orderBefore method in the ResourceProvider is whether it should throw UOE in case there is no support for ordering in general (as there is no dedicated service property to indicate support but only the general one for modifiable providers) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
