trying to attach a file to a document and specifying a nonexistent revision
number causes status code 500 in the HTTP response
------------------------------------------------------------------------------------------------------------------------------
Key: COUCHDB-1018
URL: https://issues.apache.org/jira/browse/COUCHDB-1018
Project: CouchDB
Issue Type: Bug
Components: HTTP Interface
Reporter: Klaus Trainer
Priority: Minor
When trying to attach a file to a document and specifying a nonexistent
revision number, the HTTP response's status code is 500. This status code is
plainly wrong, as there is definitely no Internal Server Error in that case.
When trying to update a document body and specifying a nonexistent revision
number, the HTTP response's status code is 409 (which is reasonable).
Here, the resulting HTTP status codes should be consistent, i.e., independent
of the fact whether a new version of the document body or an attachment is
written.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.