couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Bögge (JIRA) <j...@apache.org>
Subject [jira] Closed: (COUCHDB-853) Update conflict after recreating a deleted document
Date Wed, 11 Aug 2010 11:41:18 GMT

     [ https://issues.apache.org/jira/browse/COUCHDB-853?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

André Bögge closed COUCHDB-853.
-------------------------------

    Fix Version/s: 0.11.1
       Resolution: Not A Problem

The command 

curl -X PUT http://oz-lifecycle:5984/meine_db/test_doc_ABO -d "{\"_rev\":\"3-0c7606241b31f0566c527cd2a8c16367\"
, \"kuerzel\":\"ABO\"}"  

works. 

Thanks for your fast answer.

> Update conflict after recreating a deleted document
> ---------------------------------------------------
>
>                 Key: COUCHDB-853
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-853
>             Project: CouchDB
>          Issue Type: Question
>          Components: HTTP Interface
>    Affects Versions: 0.11.1
>         Environment: Win Server 2008 R2, CouchDB 0.11.1
>            Reporter: André Bögge
>            Priority: Trivial
>             Fix For: 0.11.1
>
>
> The problem occurs after deleting and recreating a document. I got an update conflict
writing the document after i recreated it. 
> curl -X PUT http://oz-lifecycle:5984/meine_db/test_doc_ABO -d "{\"name\":\"ABO\"}"
> --> {"ok":true,"id":"test_doc_ABO","rev":"1-d51b77d476e0aad1f9990e9a85849740"}
> D:\Programme\Curl>curl -X DELETE http://oz-lifecycle:5984/meine_db/test_doc_ABO?rev="1-d51b77d476e0aad1f9990e9a85849740"
> --> {"ok":true,"id":"test_doc_ABO","rev":"2-282f9cf6e648dcce08c426ffbf04c635"}
> D:\Programme\Curl>curl -X PUT http://oz-lifecycle:5984/meine_db/test_doc_ABO -d "{\"name\":\"ABO\"}"
> --> {"ok":true,"id":"test_doc_ABO","rev":"3-0c7606241b31f0566c527cd2a8c16367"}
> D:\Programme\Curl>curl -X PUT http://oz-lifecycle:5984/meine_db/test_doc_ABO?rev="3-0c7606241b31f0566c527cd2a8c16367"
-d "{\"kuerzel\":\"ABO\"}"
> --> {"error":"conflict","reason":"Document update conflict."}

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


Mime
View raw message