incubator-couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Klaus Trainer (JIRA)" <>
Subject [jira] Commented: (COUCHDB-911) Repeating a doc._id in a _bulk_docs request results in erroneous "Document conflict" error
Date Thu, 07 Oct 2010 07:39:31 GMT


Klaus Trainer commented on COUCHDB-911:

Trying your example request with CouchDB 1.0.1, I get the following error message:
{"error":"bad_request","reason":"invalid UTF-8 JSON: <<\"{\\\"docs\\\": [{\\\"_id\\\":\\\"foo\\\"},

When replacing the comma with a colon, I get this result:

Obviously, that's not a CouchDB issue.

Why not just report Cloudant/BigCouch issues that are no CouchDB issues to Cloudant or rather
to the BigCouch project.

- Klaus

> Repeating a doc._id in a _bulk_docs request results in erroneous "Document conflict"
> ------------------------------------------------------------------------------------------
>                 Key: COUCHDB-911
>                 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
> Repeating an "_id" in a _bulk_docs post data file results in both entries being reported
as document conflict errors.  The first occurrence actual inserts into the database, and only
the second occurrence should report a conflict.
> curl -d '{ "docs": [ {"_id":"foo"}, {"_id","foo"} ] }' -H 'Content-Type:application/json'
> [{"id":"foo","error":"conflict","reason":"Document update conflict."},{"id":"foo","error":"conflict","reason":"Document
update conflict."}]
> But the database shows that one new document was actually inserted.
> Only the second occurrence should report conflict.  The first occurrence should report
the "_rev" property of the newly inserted doc.

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

View raw message