[ 
https://issues.apache.org/jira/browse/SLING-250?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Felix Meschberger reopened SLING-250:
-------------------------------------

      Assignee: Felix Meschberger  (was: Bertrand Delacretaz)

The current implementation after applying the patch is overcomplicated and in 
fact does not even work correctly when the web application root is accessed 
(suffix is set to "/" instead of null).

Due to the current way a resource is resolved from the URL the part of the URL 
to be parsed by the SlingRequestPathInfo constructor always is empty or starts 
with a dot. The reason for this is, that either the full URL may be resolved to 
a resource or any prefix part separated from the rest by a dot. Slashes are 
never used to separate the resource prefix and the rest.

> JSON serialization of repository root does not include child nodes
> ------------------------------------------------------------------
>
>                 Key: SLING-250
>                 URL: https://issues.apache.org/jira/browse/SLING-250
>             Project: Sling
>          Issue Type: Bug
>          Components: Launchpad
>            Reporter: Lars Trieloff
>            Assignee: Felix Meschberger
>         Attachments: 250-fix.patch, 250-test.patch, 250-test.patch
>
>
> The JSON servlet includes child nodes in the serialization for all nodes, but 
> the root node:
> A small test case using curl looks like this:
> [EMAIL PROTECTED]:~/Documents/OpenSource/sling/launchpad/launchpad-webapp$ 
> curl -u admin:admin http://localhost:8888/bunkai.1.json
> {"jcr:created":"Fri Feb 15 2008 14:59:33 
> GMT+0100","jcr:primaryType":"nt:folder","test":{"jcr:created":"Fri Feb 15 
> 2008 14:59:33 
> GMT+0100","jcr:primaryType":"nt:folder"},"editarea":{"jcr:created":"Fri Feb 
> 15 2008 14:59:35 
> GMT+0100","jcr:primaryType":"nt:folder"},"json.esp":{"jcr:created":"Fri Feb 
> 15 2008 14:59:57 
> GMT+0100","jcr:primaryType":"nt:file"},"bunkai":{"jcr:mixinTypes":["mix:lockable"],"jcr:created":"Fri
>  Feb 15 2008 14:59:57 
> GMT+0100","jcr:primaryType":"nt:folder"},"screenshots":{"jcr:created":"Fri 
> Feb 15 2008 15:00:13 
> GMT+0100","jcr:primaryType":"nt:folder"},"dojo-1.0.2":{"jcr:created":"Fri Feb 
> 15 2008 15:00:14 GMT+0100","jcr:primaryType":"nt:folder"}}
> [EMAIL PROTECTED]:~/Documents/OpenSource/sling/launchpad/launchpad-webapp$ 
> curl -u admin:admin http://localhost:8888/.1.json
> {"jcr:mixinTypes":["mix:lockable"],"jcr:primaryType":"rep:root"}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to