Editing JSON in CB Admin strips flags out
HI there,
I'm using the PHP SDK to serialize/unserialize objects as JSON -- things work fine unless I manually edit a document in the couchbase admin. After that the document doesn't unserialize properly in PHP. It looks like the admin page strips out the "flags" set by the PHP SDK.
Is there any way to preserve flags, or at least give the option to edit them?
Hello,
Could you provide some sample code and log/JSON document?
it looks like a bug and I would like to check/test it with the same scenario.
Regards
Hi there,
I'm not sure what you need. I'm editing a JSON document in the CB admin console. What type of code sample would you like? The JSON document itself?
Thanks,
The PHP code you use to set/get the data and the data itself.
Wich version of the PHP SDK are you using?
I'm using PHP SDK 1.1
To reproduce:
1/ Set the PHP SDK to serialize/unserialize upon set/get.
2/ create any object/array
3/ "set" it using the PHP SDK
4/ edit the document just set using the couchbase admin console
5/ try to "get" using the PHP SDK
Step 5/ fails because the PHP SDK sets the flags to be "6" and the couchbase console strips this flag out upon saving. Considering that each document is identified as as "json" document if it is so I would expect the PHP SDK to use that document type value rather than setting a flag.
while flags may not be displayed on the UI, they should still be preserved.
probably need to create a bug,
Did you try to recreate the bug?
Are you going to file the bug report?
Hi,
Can you provide an example of serialized JSON?