Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
1.0
-
None
-
Cloudant BigCouch EC2 node
-
New Contributors Level (Easy)
Description
The following two malformed _bulk_docs request result in errors when issued to Cloudant's BigNode cluster (however, it is fundamentally a CouchDB problem and should give the same results with a standalone CouchDB):
curl -d '
{"doc": [] }' -H 'Content-Type:application/json' -X POST https://appadvice.cloudant.com/foo/_bulk_docs
{"error":"unknown_error","reason":"function_clause"}curl -d '{"doc": [
{"_id":"foo"}] }' -H 'Content-Type:application/json' -X POST https://appadvice.cloudant.com/foo/_bulk_docs
{"error":"unknown_error","reason":"function_clause"}In both cases the error is that
{"docs": [ ... ] }was not used but instead the keyword "doc" was used.
The result should be a notification of the error in the data supplied, rather than crashing the web server.
This is probably a reopening of issues related to COUCHDB-306