You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "Meno Abels (JIRA)" <ji...@apache.org> on 2010/02/09 07:27:27 UTC
[jira] Updated: (COUCHDB-643) why is this a conflict
[ https://issues.apache.org/jira/browse/COUCHDB-643?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Meno Abels updated COUCHDB-643:
-------------------------------
Component/s: Database Core
> why is this a conflict
> ----------------------
>
> Key: COUCHDB-643
> URL: https://issues.apache.org/jira/browse/COUCHDB-643
> Project: CouchDB
> Issue Type: Bug
> Components: Database Core
> Affects Versions: 0.10.1
> Environment: linux-ubuntu x86_64
> Reporter: Meno Abels
>
> Hello
> if you add this document to the db:
> curl -X PUT http://127.0.0.1:5984/test-db/test-doc \
> -H "Content-type: application/json" \
> --data "{\"_attachments\":{\"raw\":{\"data\":\"anVzdCBhIHNob3J0IHN0cmluZw==\",
> \"content_type\":\"plain/text\"}}}"
> >> {"ok":true,"id":"test-doc","rev":"1-e3c177696acf6057b12ad6e1bc883625"}
> and than try to update it
> curl -X PUT http://127.0.0.1:5984/test-db/test-doc?rev=1-e3c177696acf6057b12ad6e1bc883625 \
> -H "Content-type: application/json" \
> --data "{\"foo\":\"bar\"}"
> >> {"error":"conflict","reason":"Document update conflict."}
> take care of the correct rev numbers.
> What is my fault?
> thx in advance
> meno
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.