You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Felix Meschberger (JIRA)" <ji...@apache.org> on 2008/02/26 08:09:51 UTC

[jira] Closed: (SLING-250) JSON serialization of repository root does not include child nodes

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

Felix Meschberger closed SLING-250.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 2.0.0

Resolved in Rev. 631105 by cleaning up the SlingRequestPathInfo constructor and working on the assumption, that request URLs are split at dots only to resolve the addressed resource (see SLING-230).

Also had to remove some invalid testcases still assuming split on slash.

> 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
>             Fix For: 2.0.0
>
>         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:
> lars@lars-laptop:~/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"}}
> lars@lars-laptop:~/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.