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

[jira] Updated: (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 ]

Lars Trieloff updated SLING-250:
--------------------------------

    Attachment: 250-test.patch

The following patch extends the test cases to demonstrate the root problem. /.1.json is parsed as:
suffix: .1
selector: null

While it should be:

suffix: null
selector: 1

> 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
>         Attachments: 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.