Couchbase
  • Why NoSQL?
  • Couchbase Server
  • Download
  • Resources
  • Careers
Home | Forums | Couchbase | Couchbase Server 2.0

Editing JSON in CB Admin strips flags out

7 replies [Last post]
  • Login or register to post comments
Thu, 01/17/2013 - 18:17
pgrigor
Offline
Joined: 01/08/2013
Groups: None

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?

Top
  • Login or register to post comments
Tue, 01/22/2013 - 04:29
Pavel Blagodov
Offline
Joined: 04/30/2012
Groups: None

Hi,

Can you provide an example of serialized JSON?

Top
  • Login or register to post comments
Tue, 01/22/2013 - 10:24
tgrall
Offline
Joined: 09/05/2012
Groups: None

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

__________________

Tug
@tgrall

Top
  • Login or register to post comments
Tue, 01/22/2013 - 16:19
pgrigor
Offline
Joined: 01/08/2013
Groups: None

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,

Top
  • Login or register to post comments
Tue, 01/22/2013 - 16:36
tgrall
Offline
Joined: 09/05/2012
Groups: None

The PHP code you use to set/get the data and the data itself.

Wich version of the PHP SDK are you using?

__________________

Tug
@tgrall

Top
  • Login or register to post comments
Thu, 01/31/2013 - 22:48
pgrigor
Offline
Joined: 01/08/2013
Groups: None

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.

Top
  • Login or register to post comments
Thu, 01/31/2013 - 23:08
dipti
Offline
Joined: 11/02/2011
Groups:

while flags may not be displayed on the UI, they should still be preserved.

probably need to create a bug,

Top
  • Login or register to post comments
Wed, 02/06/2013 - 16:43
pgrigor
Offline
Joined: 01/08/2013
Groups: None

Did you try to recreate the bug?

Are you going to file the bug report?

Top
  • Login or register to post comments
  • Login or register to post comments
  • Login
  • Register

Company

  • About Us
  • Leadership
  • Customers
  • Partners
  • Contact Us

Product

  • Couchbase Server
  • Couchbase SDKs
  • Use Cases
  • Documentation
  • Forums

Open Source

  • Couchbase Project
  • Couchbase vs. CouchDB

Commercial

  • Subscriptions & Support
  • Training & Services

News

  • Blog
  • Newsletter
  • Press Releases
  • Buzz

Follow Us

    
  • Customer Login
  • Terms of Service
  • Privacy Policy
  • Trademark Policy
  • Site Map

© 2013 COUCHBASE All rights reserved.

Sign in to Couchbase Community

close
  • Create new account
  • Request new password
You are logging into the Forums, Wiki and Issue Tracker