Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: _rev field overridden when rev field is present #1448

Open
feliixx opened this issue May 28, 2024 · 0 comments
Open

Bug: _rev field overridden when rev field is present #1448

feliixx opened this issue May 28, 2024 · 0 comments

Comments

@feliixx
Copy link

feliixx commented May 28, 2024

Hi, thanks for maintaining this great project ! While trying to update an old document with Fauxton recently I noticed a weird behavior:

Expected Behavior

Current Behavior

  • The _rev attribute is overwritten by the content of the rev field
  • the rev field does not appear in the document

Steps to Reproduce (for bugs)

  1. Create an empty document, and save it. _rev becomes 1-xxx
  2. Open the doc in Fauxton, and update the document to add the field "rev": "1-xxx"
  3. Save the doc, and open it again in the UI

=> the UI shows the document with the wrong _rev: {"_rev": "1-xxx"} instead of {"_rev": "2-xxx", "rev": "1-xxx"}

Context

  • noticed while trying to update a document with Fauxton. The update kept failing with document update conflict (which is logical as the _rev was wrongly overwritten)

Your Environment

  • Version used: CouchDB 3.3.3
  • Browser Name and version: Chromium 124
  • Operating System and version (desktop or mobile): Fedora 39 on desktop / server is running Rockylinux 9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant