Description
I'm using the Go Couchbase library to store JSON docs. Works fine, but I noticed that in the Couchbase web UI the docs don't always show up as JSON:
- In the listing of the documents in the bucket, the "Content" column correctly shows the contents as syntax-highlighted JSON.
- But when I click on a document's "Edit Document" button, the contents are shown as Base64.
- In the view editor's "random document" display, the docs show up as base64 in the left pane but the JSON data shows up on individual lines in the right pane.
Aaron thinks something is misinterpreting the content-meta bits, possibly not filtering out the Snappy bit (0x80) and thinking the doc isn't JSON. Here's the couch_dbdump output of one such document:
Doc seq: 7
id: foo:doc1
rev: 13
content_meta: 128
cas: 42427677813197, expiry: 0, flags: 0
data: (snappy) {"_rev":"1-2d70b62dfb1c93148cacb4dcf6ab71ec01b34171","_revmap":
,"hi":"there"}
Attachments
For Gerrit Dashboard: MB-6773 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
21324,5 | MB-6773 Follow new JSON rules | master | couchdb | Status: MERGED | +2 | +1 |