couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Meno Abels (JIRA)" <>
Subject [jira] Created: (COUCHDB-643) why is this a conflict
Date Tue, 09 Feb 2010 06:25:28 GMT
why is this a conflict

                 Key: COUCHDB-643
             Project: CouchDB
          Issue Type: Bug
    Affects Versions: 0.10.1
         Environment: linux-ubuntu x86_64
            Reporter: Meno Abels


if you add this document to the db:

curl -X PUT \  
     -H "Content-type: application/json" \  
     --data "{\"_attachments\":{\"raw\":{\"data\":\"anVzdCBhIHNob3J0IHN0cmluZw==\",  
>> {"ok":true,"id":"test-doc","rev":"1-e3c177696acf6057b12ad6e1bc883625"}

and than try to update it
curl -X PUT
     -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


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

View raw message