Description
It should follow "RFC-20 Common Flags" at https://github.com/couchbaselabs/sdk-rfcs
Direct link is https://docs.google.com/document/d/1V653a6FF6DOqdT4d-fKIjGkHabDaNGZsvbtsUKJyeLc/edit
In particular it should specify flags 0x02000006 (which is 0x02000000 (common flags JSON) OR-ed with 0x00000006 (legacy flags JSON)) to support all SDK clients. Or at least 0x02000000 for modern clients which support RFC-20
Create testcase:
1. Create document with id foo via UI
2. Run cbc tool to fetch the document:
$ cbc cat foo
|
foo CAS=0x540426c4f0000, Flags=0x0. Size=67
|
{"click":"to edit","with JSON":"there are no reserved field names"}
|
3. Flags should not be zero
Update testcase:
1. Create document foo with cbc tool:
$ cbc cp --flags 33554438 foo
|
foo Stored. CAS=0x540429d640000
|
$ cbc cat foo
|
foo CAS=0x540429d640000, Flags=0x2000006. Size=13
|
{"foo":"bar"}
|
2. Edit document with WebUI
3. Fetch document:
$ cbc cat foo
|
foo CAS=0x54042a3460000, Flags=0x0. Size=18
|
{
|
"foo": "baz"
|
}
|
4. Flags should not be zero
Attachments
Issue Links
- relates to
-
MB-13608 Show document metadata in document viewer interface
- Closed