[ https://issues.apache.org/jira/browse/COUCHDB-643?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chris Anderson closed COUCHDB-643. ---------------------------------- Resolution: Duplicate Questions like this are a better fit for the mailing list: http://couchdb.apache.org/community/lists.html I think the answer is that you need to provide the _rev as part of the JSON body. This isn't because you are wrong, it's because CouchDB still has some code that needs to be written. I think this is addressed in COUCHDB-642 Cheers, Chris > 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.