You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Vidar S. Ramdal (JIRA)" <ji...@apache.org> on 2010/04/26 11:06:34 UTC
[jira] Resolved: (SLING-1501) JSONResponse doesn't set the status
code on the response
[ https://issues.apache.org/jira/browse/SLING-1501?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Vidar S. Ramdal resolved SLING-1501.
------------------------------------
Assignee: Vidar S. Ramdal
Resolution: Fixed
Thank you for the patch! I have applied it in rev #937970.
> JSONResponse doesn't set the status code on the response
> --------------------------------------------------------
>
> Key: SLING-1501
> URL: https://issues.apache.org/jira/browse/SLING-1501
> Project: Sling
> Issue Type: Bug
> Components: Servlets
> Affects Versions: Servlets Post 2.0.6
> Reporter: Simon Gaeremynck
> Assignee: Vidar S. Ramdal
> Fix For: Servlets Post 2.0.6
>
> Attachments: jsonresponse.patch
>
>
> When we are doing POST operations we use the Accept header set to application/json so we get a json response back.
> However, when an operation fails for some reason, there is no status code set on the response. (It is defined in the json response itself though).
> This patch should set a status code.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.