couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul Joseph Davis (JIRA)" <>
Subject [jira] Commented: (COUCHDB-910) Malformed _bulk_docs post data causes a 500 function clause error
Date Thu, 07 Oct 2010 14:22:31 GMT


Paul Joseph Davis commented on COUCHDB-910:

I'm confused, what part of "malformed request causes error" is a bug? Or are you just wanting
better error messages?

> Malformed _bulk_docs post data causes a 500 function clause error
> -----------------------------------------------------------------
>                 Key: COUCHDB-910
>                 URL:
>             Project: CouchDB
>          Issue Type: Bug
>          Components: HTTP Interface
>    Affects Versions: 1.0
>         Environment: Cloudant BigCouch EC2 node
>            Reporter: Jay Nelson
>            Priority: Minor
>   Original Estimate: 48h
>  Remaining Estimate: 48h
> 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
> {"error":"unknown_error","reason":"function_clause"}
> curl -d '{"doc": [{"_id":"foo"}] }' -H 'Content-Type:application/json' -X POST
> {"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

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

View raw message