You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Eric Norman (JIRA)" <ji...@apache.org> on 2010/08/05 04:23:16 UTC

[jira] Created: (SLING-1628) Default status code for a post that results in an error should be 500 instead of 200

Default status code for a post that results in an error should be 500 instead of 200
------------------------------------------------------------------------------------

                 Key: SLING-1628
                 URL: https://issues.apache.org/jira/browse/SLING-1628
             Project: Sling
          Issue Type: Improvement
          Components: API
    Affects Versions: API 2.0.8, API 2.0.6, API 2.0.4, API 2.0.2
            Reporter: Eric Norman
            Assignee: Eric Norman
            Priority: Minor
             Fix For: API 2.1.0


If a POST causes an unexpected exception and no status code has been set on the HtmlResponse object, then the default status code should be 500 to indicate that there was an error.  Previously, if no status code was set on the HtmlResponse object, the response was assumed to be successful and returned a 200 status code.

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


[jira] Closed: (SLING-1628) Default status code for a post that results in an error should be 500 instead of 200

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

Felix Meschberger closed SLING-1628.
------------------------------------


Mark issues only relating to Sling API 2.1.0 release as closed (others to be closed once the respective versions are released)

> Default status code for a post that results in an error should be 500 instead of 200
> ------------------------------------------------------------------------------------
>
>                 Key: SLING-1628
>                 URL: https://issues.apache.org/jira/browse/SLING-1628
>             Project: Sling
>          Issue Type: Improvement
>          Components: API
>    Affects Versions: API 2.0.2, API 2.0.4, API 2.0.6, API 2.0.8
>            Reporter: Eric Norman
>            Assignee: Eric Norman
>            Priority: Minor
>             Fix For: API 2.1.0
>
>
> If a POST causes an unexpected exception and no status code has been set on the HtmlResponse object, then the default status code should be 500 to indicate that there was an error.  Previously, if no status code was set on the HtmlResponse object, the response was assumed to be successful and returned a 200 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-1628) Default status code for a post that results in an error should be 500 instead of 200

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

Eric Norman resolved SLING-1628.
--------------------------------

    Resolution: Fixed

Fixed in r982453

> Default status code for a post that results in an error should be 500 instead of 200
> ------------------------------------------------------------------------------------
>
>                 Key: SLING-1628
>                 URL: https://issues.apache.org/jira/browse/SLING-1628
>             Project: Sling
>          Issue Type: Improvement
>          Components: API
>    Affects Versions: API 2.0.2, API 2.0.4, API 2.0.6, API 2.0.8
>            Reporter: Eric Norman
>            Assignee: Eric Norman
>            Priority: Minor
>             Fix For: API 2.1.0
>
>
> If a POST causes an unexpected exception and no status code has been set on the HtmlResponse object, then the default status code should be 500 to indicate that there was an error.  Previously, if no status code was set on the HtmlResponse object, the response was assumed to be successful and returned a 200 status code.

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