You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "Jan Lehnardt (JIRA)" <ji...@apache.org> on 2011/04/17 15:28:05 UTC

[jira] [Resolved] (COUCHDB-910) Malformed _bulk_docs post data causes a 500 function clause error

     [ https://issues.apache.org/jira/browse/COUCHDB-910?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jan Lehnardt resolved COUCHDB-910.
----------------------------------

       Resolution: Fixed
    Fix Version/s: 1.2

Applied, thanks!

> Malformed _bulk_docs post data causes a 500 function clause error
> -----------------------------------------------------------------
>
>                 Key: COUCHDB-910
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-910
>             Project: CouchDB
>          Issue Type: Bug
>          Components: HTTP Interface
>    Affects Versions: 1.0
>         Environment: Cloudant BigCouch EC2 node
>            Reporter: Jay Nelson
>            Priority: Minor
>             Fix For: 1.2
>
>         Attachments: patch.txt
>
>   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 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

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira