You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Simon Gaeremynck (JIRA)" <ji...@apache.org> on 2010/04/25 20:43:49 UTC
[jira] Created: (SLING-1501) JSONResponse doesn't set the status
code on the response
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
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.
[jira] Resolved: (SLING-1501) JSONResponse doesn't set the status
code on the response
Posted by "Vidar S. Ramdal (JIRA)" <ji...@apache.org>.
[ 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.
[jira] Updated: (SLING-1501) JSONResponse doesn't set the status
code on the response
Posted by "Simon Gaeremynck (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/SLING-1501?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Simon Gaeremynck updated SLING-1501:
------------------------------------
Attachment: jsonresponse.patch
Sets the status in JSONresponse
Adds in a test case to check for a proper statuscode
> 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
> 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.