[ 
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.

Reply via email to