Re: Clarification on https://sling.apache.org/documentation/the-sling-engine/url-decomposition.html

2016-09-22 Thread Konrad Windszus
I clarified http://sling.staging.apache.org/documentation/the-sling-engine/url-decomposition.html in r1761914 and r1761917. Please quickly cross-check

Re: Clarification on https://sling.apache.org/documentation/the-sling-engine/url-decomposition.html

2016-09-20 Thread Konrad Windszus
Thanks, got it. Indeed the algorithm seems to differ whether it resolves to an existing path or a non-existing path. Are there any more tests for the resolve method except for the basic ones in

Re: Clarification on https://sling.apache.org/documentation/the-sling-engine/url-decomposition.html

2016-09-20 Thread Carsten Ziegeler
> Hi Bertrand, I agree that referencing test cases is for sure good and > validating those assumptions with those as well (if that is not yet the > case). Currently though I have troubles to find the according code. > The selector, extension and suffix handling is in >

Re: Clarification on https://sling.apache.org/documentation/the-sling-engine/url-decomposition.html

2016-09-20 Thread Konrad Windszus
Hi Bertrand, I agree that referencing test cases is for sure good and validating those assumptions with those as well (if that is not yet the case). Currently though I have troubles to find the according code. The selector, extension and suffix handling is in

Re: Clarification on https://sling.apache.org/documentation/the-sling-engine/url-decomposition.html

2016-09-20 Thread Bertrand Delacretaz
Hi Konrad, On Mon, Sep 19, 2016 at 11:37 AM, Konrad Windszus wrote: > ...So basically we have to distinguish between existing and non existing > resource paths... Even if someone knew these details off the top of their head (which I don't) IMO the only sane way to document

Re: Clarification on https://sling.apache.org/documentation/the-sling-engine/url-decomposition.html

2016-09-19 Thread Konrad Windszus
This also does not seem to be 100% correct. Just think about the following example: There is a resource named "/a/b.c". Then the decomposition is as follows: For "/a/b.c.html" the resource path would be "/a/b.c" and the extension would be "html", selectors would be null and suffix null. For