You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Oliver Lietz (JIRA)" <ji...@apache.org> on 2014/06/03 21:53:01 UTC
[jira] [Commented] (SLING-3008) Render resource type (and super
type) if resource can't be adapted to a map in JSON
[ https://issues.apache.org/jira/browse/SLING-3008?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14017053#comment-14017053 ]
Oliver Lietz commented on SLING-3008:
-------------------------------------
This change looks wrong to me, as a call {{curl http://localhost:8181/system/userManager/user.tidy.1.json}} now results in:
{noformat}
{
"sling:resourceType": "sling/users",
"admin": {
"memberOf": [],
"declaredMemberOf": []
},
"anonymous": {
"memberOf": [],
"declaredMemberOf": []
}
}
{noformat}
I don't think that clients should filter out {{sling:resourceType}} and {{sling:resourceSuperType}}. What was the purpose of this change?
> Render resource type (and super type) if resource can't be adapted to a map in JSON
> -----------------------------------------------------------------------------------
>
> Key: SLING-3008
> URL: https://issues.apache.org/jira/browse/SLING-3008
> Project: Sling
> Issue Type: Bug
> Components: Servlets
> Affects Versions: Servlets Get 2.1.4
> Reporter: Carsten Ziegeler
> Assignee: Carsten Ziegeler
> Fix For: Servlets Get 2.1.6
>
>
> If the resource can't be adapted to a (value) map, at least resource type and resource super type (if not null) should be rendered in the json output
--
This message was sent by Atlassian JIRA
(v6.2#6252)