why is this a conflict
----------------------

                 Key: COUCHDB-643
                 URL: https://issues.apache.org/jira/browse/COUCHDB-643
             Project: CouchDB
          Issue Type: Bug
    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.

Reply via email to