You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "Jason Davies (JIRA)" <ji...@apache.org> on 2009/03/06 14:13:56 UTC

[jira] Created: (COUCHDB-283) Query parse errors should be returned as 400 Bad Request, not 500 Internal Server Error

Query parse errors should be returned as 400 Bad Request, not 500 Internal Server Error
---------------------------------------------------------------------------------------

                 Key: COUCHDB-283
                 URL: https://issues.apache.org/jira/browse/COUCHDB-283
             Project: CouchDB
          Issue Type: Bug
          Components: HTTP Interface
            Reporter: Jason Davies
             Fix For: 0.9


Thus quoth Jan:

  jan____: jasondavies: the 500 status code is for bugs in the server

Patch to follow...

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


[jira] Updated: (COUCHDB-283) Query parse errors should be returned as 400 Bad Request, not 500 Internal Server Error

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

Jason Davies updated COUCHDB-283:
---------------------------------

    Attachment: bad_requests.diff

This patch updates tests and couch_httpd_view:parse_view_query to throw bad_request instead of query_parse_error, thus returning a 400 instead of a 500 response.

This patch also includes a minor update to couch_httpd_show to validate the query for reduce _lists (this was originally attached to COUCHDB-269, but moving it here as the tests for it also needed updating and it's only a few lines long).

> Query parse errors should be returned as 400 Bad Request, not 500 Internal Server Error
> ---------------------------------------------------------------------------------------
>
>                 Key: COUCHDB-283
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-283
>             Project: CouchDB
>          Issue Type: Bug
>          Components: HTTP Interface
>            Reporter: Jason Davies
>             Fix For: 0.9
>
>         Attachments: bad_requests.diff
>
>
> Thus quoth Jan:
>   jan____: jasondavies: the 500 status code is for bugs in the server
> Patch to follow...

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


[jira] Closed: (COUCHDB-283) Query parse errors should be returned as 400 Bad Request, not 500 Internal Server Error

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

Chris Anderson closed COUCHDB-283.
----------------------------------

    Resolution: Fixed

fixed in r750969

> Query parse errors should be returned as 400 Bad Request, not 500 Internal Server Error
> ---------------------------------------------------------------------------------------
>
>                 Key: COUCHDB-283
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-283
>             Project: CouchDB
>          Issue Type: Bug
>          Components: HTTP Interface
>            Reporter: Jason Davies
>             Fix For: 0.9
>
>         Attachments: bad_requests.diff
>
>
> Thus quoth Jan:
>   jan____: jasondavies: the 500 status code is for bugs in the server
> Patch to follow...

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