Hi Christian, > The code below reproduces the behavior. I'm not able to reproduce the behaviour with CouchDB 1.0.1.
- Klaus On Mon, 2010-08-30 at 11:03 -0400, Christian Siegert (JIRA) wrote: > Creating->deleting->creating a document produces a deleted conflict. > -------------------------------------------------------------------- > > Key: COUCHDB-874 > URL: https://issues.apache.org/jira/browse/COUCHDB-874 > Project: CouchDB > Issue Type: Bug > Affects Versions: 1.0.1, 0.10, 0.12 > Environment: Ubuntu 10.04 (64-bit) and CouchDB 0.10 > Reporter: Christian Siegert > > > Creating a document, deleting it and creating it again with the same id but > different content produces a deleted conflict. The code below reproduces the > behavior. > > #!/bin/sh > # No deleted conflict > URL="http://localhost:5984/db" > > curl -X DELETE $URL > curl -X PUT $URL > > curl -X PUT -d '{}' $URL/doc > curl -X DELETE $URL/doc?rev=1-967a00dff5e02add41819138abb3284d > curl $URL/doc > curl -X PUT -d '{}' $URL/doc > curl $URL/doc?meta=true > > > #!/bin/sh > # deleted conflict > URL="http://localhost:5984/db" > > curl -X DELETE $URL > curl -X PUT $URL > > curl -X PUT -d '{}' $URL/doc > curl -X DELETE $URL/doc?rev=1-967a00dff5e02add41819138abb3284d > curl $URL/doc > curl -X PUT -d '{"foo":"bar"}' $URL/doc > curl $URL/doc?meta=true >
