You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2020/09/28 10:49:25 UTC

[GitHub] [couchdb] maxlath opened a new issue #3177: can't recover deleted document

maxlath opened a new issue #3177:
URL: https://github.com/apache/couchdb/issues/3177


   ## Description
   
   While upgrading from CouchDB 1.7.x to 3.1.x (installed via Docker), I noticed this change in behavior: what works to recover a deleted document on 1.7.x seems to fail on 3.1.x
   
   ## Steps to Reproduce
   
   ```sh
   # create db
   curl -XPUT "$http://localhost:5984/some-db"
   # put a doc
   rev1=$(curl -XPUT "$http://localhost:5984/some-db/foo" -d '{"bar":123}' | jq '.rev' -r)
   # delete doc
   rev2=$(curl -XDELETE "$http://localhost:5984/some-db/foo?rev=${rev1}" | jq '.rev' -r)
   # try to undelete: fails, {"error":"conflict","reason":"Document update conflict."}
   curl -XPUT "$http://localhost:5984/some-db/foo?rev=${rev2}" -d '{"bar":123}' | jq '.rev' -r
   ```
   
   ## Expected Behaviour
   
   Recover the document, as in previous versions
   
   ## Your Environment
   
   Docker image: `couchdb:3.1`
   ```
   {"couchdb":"Welcome","version":"3.1.0","git_sha":"ff0feea20","uuid":"f8d9db8433165a5f14a63035b0a8ef08","features":["access-ready","partitioned","pluggable-storage-engines","reshard","scheduler"],"vendor":{"name":"The Apache Software Foundation"}}
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [couchdb] wohali closed issue #3177: can't recover deleted document

Posted by GitBox <gi...@apache.org>.
wohali closed issue #3177:
URL: https://github.com/apache/couchdb/issues/3177


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org