natevw opened a new issue #2046: Returns 500 instead of 400 when document has unexpected fields URL: https://github.com/apache/couchdb/issues/2046 CouchDB is returning a 500 (server) error instead of a 400 (client) error when an invalid document is submitted. ## Description If I PUT a document to CouchDB with a reserved field starting with an underscore, I get a 500 error: ``` [Tue, 04 Jun 2019 17:23:19 GMT] [info] [<0.19565.117>] 127.0.0.1 - - PUT /my-db/my-doc 500 [Tue, 04 Jun 2019 17:23:19 GMT] [error] [<0.19565.117>] httpd 500 error response: {"error":"doc_validation","reason":"Bad special document member: _uiField"} ``` See https://github.com/jo/couchdb-compile/issues/17 for another example of this coming through in the wild. The field in the document is invalid (in this case `_uiField` was never intended to be saved), but CouchDB *should* be returning a 400 instead of 500 error.
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
