You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Bertrand Delacretaz (JIRA)" <ji...@apache.org> on 2008/12/23 16:39:44 UTC

[jira] Created: (SLING-795) JSON dump of / children fails due to /system synthetic resource

JSON dump of / children fails due to /system synthetic resource
---------------------------------------------------------------

                 Key: SLING-795
                 URL: https://issues.apache.org/jira/browse/SLING-795
             Project: Sling
          Issue Type: Bug
          Components: Servlets Get
            Reporter: Bertrand Delacretaz
            Priority: Minor
             Fix For: Servlets Get 2.0.4


Requesting http://localhost:8080/.1.json for example fails with org.apache.sling.commons.json.JSONException: Misplaced endArray

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


[jira] Resolved: (SLING-795) JSON dump of / children fails due to /system synthetic resource

Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SLING-795?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Felix Meschberger resolved SLING-795.
-------------------------------------

    Resolution: Duplicate

Reverted the patch applied to the JsonResourceWriter in Rev. 729988.

I think the real problem is really linked to SLING-796.

> JSON dump of / children fails due to /system synthetic resource
> ---------------------------------------------------------------
>
>                 Key: SLING-795
>                 URL: https://issues.apache.org/jira/browse/SLING-795
>             Project: Sling
>          Issue Type: Bug
>          Components: Servlets Get
>            Reporter: Bertrand Delacretaz
>            Assignee: Felix Meschberger
>            Priority: Minor
>             Fix For: Servlets Get 2.0.4
>
>
> Requesting http://localhost:8080/.1.json for example fails with org.apache.sling.commons.json.JSONException: Misplaced endArray

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


[jira] Closed: (SLING-795) JSON dump of / children fails due to /system synthetic resource

Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SLING-795?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Felix Meschberger closed SLING-795.
-----------------------------------


Closing this issue.

> JSON dump of / children fails due to /system synthetic resource
> ---------------------------------------------------------------
>
>                 Key: SLING-795
>                 URL: https://issues.apache.org/jira/browse/SLING-795
>             Project: Sling
>          Issue Type: Bug
>          Components: Servlets Get
>            Reporter: Bertrand Delacretaz
>            Assignee: Felix Meschberger
>            Priority: Minor
>             Fix For: Servlets Get 2.0.4
>
>
> Requesting http://localhost:8080/.1.json for example fails with org.apache.sling.commons.json.JSONException: Misplaced endArray

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


[jira] Assigned: (SLING-795) JSON dump of / children fails due to /system synthetic resource

Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SLING-795?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Felix Meschberger reassigned SLING-795:
---------------------------------------

    Assignee: Felix Meschberger  (was: Bertrand Delacretaz)

> JSON dump of / children fails due to /system synthetic resource
> ---------------------------------------------------------------
>
>                 Key: SLING-795
>                 URL: https://issues.apache.org/jira/browse/SLING-795
>             Project: Sling
>          Issue Type: Bug
>          Components: Servlets Get
>            Reporter: Bertrand Delacretaz
>            Assignee: Felix Meschberger
>            Priority: Minor
>             Fix For: Servlets Get 2.0.4
>
>
> Requesting http://localhost:8080/.1.json for example fails with org.apache.sling.commons.json.JSONException: Misplaced endArray

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


[jira] Commented: (SLING-795) JSON dump of / children fails due to /system synthetic resource

Posted by "Rory Douglas (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SLING-795?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12659603#action_12659603 ] 

Rory Douglas commented on SLING-795:
------------------------------------

This works for me now

> JSON dump of / children fails due to /system synthetic resource
> ---------------------------------------------------------------
>
>                 Key: SLING-795
>                 URL: https://issues.apache.org/jira/browse/SLING-795
>             Project: Sling
>          Issue Type: Bug
>          Components: Servlets Get
>            Reporter: Bertrand Delacretaz
>            Assignee: Bertrand Delacretaz
>            Priority: Minor
>             Fix For: Servlets Get 2.0.4
>
>
> Requesting http://localhost:8080/.1.json for example fails with org.apache.sling.commons.json.JSONException: Misplaced endArray

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


[jira] Assigned: (SLING-795) JSON dump of / children fails due to /system synthetic resource

Posted by "Bertrand Delacretaz (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SLING-795?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bertrand Delacretaz reassigned SLING-795:
-----------------------------------------

    Assignee: Bertrand Delacretaz

> JSON dump of / children fails due to /system synthetic resource
> ---------------------------------------------------------------
>
>                 Key: SLING-795
>                 URL: https://issues.apache.org/jira/browse/SLING-795
>             Project: Sling
>          Issue Type: Bug
>          Components: Servlets Get
>            Reporter: Bertrand Delacretaz
>            Assignee: Bertrand Delacretaz
>            Priority: Minor
>             Fix For: Servlets Get 2.0.4
>
>
> Requesting http://localhost:8080/.1.json for example fails with org.apache.sling.commons.json.JSONException: Misplaced endArray

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


[jira] Reopened: (SLING-795) JSON dump of / children fails due to /system synthetic resource

Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SLING-795?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Felix Meschberger reopened SLING-795:
-------------------------------------


I think it is wrong to disable rendering of SyntheticResources since the JSON renderer is intended to render resources  and its properties without respect to their actual kind.

> JSON dump of / children fails due to /system synthetic resource
> ---------------------------------------------------------------
>
>                 Key: SLING-795
>                 URL: https://issues.apache.org/jira/browse/SLING-795
>             Project: Sling
>          Issue Type: Bug
>          Components: Servlets Get
>            Reporter: Bertrand Delacretaz
>            Assignee: Bertrand Delacretaz
>            Priority: Minor
>             Fix For: Servlets Get 2.0.4
>
>
> Requesting http://localhost:8080/.1.json for example fails with org.apache.sling.commons.json.JSONException: Misplaced endArray

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


[jira] Commented: (SLING-795) JSON dump of / children fails due to /system synthetic resource

Posted by "Torgeir Veimo (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SLING-795?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12659331#action_12659331 ] 

Torgeir Veimo commented on SLING-795:
-------------------------------------

http://localhost:8080/.1.json still fails with the same exception with current trunk, rev 729624 using the launchpad war.

> JSON dump of / children fails due to /system synthetic resource
> ---------------------------------------------------------------
>
>                 Key: SLING-795
>                 URL: https://issues.apache.org/jira/browse/SLING-795
>             Project: Sling
>          Issue Type: Bug
>          Components: Servlets Get
>            Reporter: Bertrand Delacretaz
>            Assignee: Bertrand Delacretaz
>            Priority: Minor
>             Fix For: Servlets Get 2.0.4
>
>
> Requesting http://localhost:8080/.1.json for example fails with org.apache.sling.commons.json.JSONException: Misplaced endArray

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


[jira] Closed: (SLING-795) JSON dump of / children fails due to /system synthetic resource

Posted by "Bertrand Delacretaz (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SLING-795?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bertrand Delacretaz closed SLING-795.
-------------------------------------

    Resolution: Fixed

Fixed in revision 729005, by not recursing into synthetic resources when generating JSON dumps.

I don't think we need to include synthetic resources in the JSON output, but if we do we'll need to investigate this in more detail.

> JSON dump of / children fails due to /system synthetic resource
> ---------------------------------------------------------------
>
>                 Key: SLING-795
>                 URL: https://issues.apache.org/jira/browse/SLING-795
>             Project: Sling
>          Issue Type: Bug
>          Components: Servlets Get
>            Reporter: Bertrand Delacretaz
>            Assignee: Bertrand Delacretaz
>            Priority: Minor
>             Fix For: Servlets Get 2.0.4
>
>
> Requesting http://localhost:8080/.1.json for example fails with org.apache.sling.commons.json.JSONException: Misplaced endArray

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