Details
-
Bug
-
Resolution: Fixed
-
Critical
-
2.0
-
Security Level: Public
-
None
-
Observed on Mac and Linux platforms
Description
Steps to reproduce:
1. Set up XDCR (observed when sending to ElasticSearch but not believe to be related to this)
2. Create JSON document
3. Observe that document is replicated as expected to remote side
[{meta=
{id=2, rev=2-000015818d7d3c0a0000000000000000, expiration=0, flags=0}, base64=eyJjbGljayI6InRvIGVkaXQiLCJuZXcgaW4gMi4wIjoidGhlcmUgYXJlIG5vIHJlc2VydmVkIGZpZWxkIG5hbWVzIn0=}]
in the _bulk_docs request the document appears to be JSON and the base64 data correctly represents the document
4. Delete the document
5. Observe that the document deletion is replicated across to remote side, but with some unusual settings:
[{meta=
{id=2, rev=3-000015818d7d3c0b0000000000000000, att_reason=non-JSON mode, expiration=0, flags=0, deleted=true}, base64=V1QBAOAAAENfbG9jYWwvdmJzdGF0ZXsiBQdoIjogImFjdGl2ZSIsICJjaGVja3BvaW50X2lkARsAMQEWXG1heF9kZWxldGVkX3NlcW5vIjogIjAifQ==}]
Note that the document is indicated as binary (non-JSON mode) and that the the base64 encoded data appears to be some random memory on the server:
echo "V1QBAOAAAENfbG9jYWwvdmJzdGF0ZXsiBQdoIjogImFjdGl2ZSIsICJjaGVja3BvaW50X2lkARsAMQEWXG1heF9kZWxldGVkX3NlcW5vIjogIjAifQ==" | base64 -D
WT?C_local/vbstate
Attachments
For Gerrit Dashboard: MB-7631 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
24586,4 | MB-7631 Interpret bp of 0 as empty body | master | couchdb | Status: MERGED | +2 | +1 |
24595,2 | Revert "MB-7631 Interpret bp of 0 as empty body" | master | couchdb | Status: MERGED | +2 | +1 |
24596,2 | MB-7631 Interpret bp of 0 as empty body | 2.0.1 | couchdb | Status: MERGED | +2 | +1 |