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

Flags modified by editing document in web ui

2 replies [Last post]
  • Login or register to post comments
Wed, 02/22/2012 - 20:00
drakmir
Offline
Joined: 01/07/2012
Groups: None

When editing a document from the "web ui", the flags are shifted by 2 bit positions to the left.

Edits using the memcached protocol don't appear to affect the flags (as expected since they should be opaque). To be fair, this is probably because the transcoder I'm using is setting the flags again.

This throws off our serialization code since we use the flags to encode data about the version and class of the serialized JSON document.

Note: Editing it a second time seems to reset the flags back properly?

Alan

Top
  • Login or register to post comments
Thu, 02/23/2012 - 15:45
damien
Offline
Joined: 08/04/2011
Groups: None

This looks to be an endian conversion we are failing to do. Should be simple to fix. Reported as a bug here: http://www.couchbase.com/issues/browse/MB-4829

Top
  • Login or register to post comments
Thu, 02/23/2012 - 16:12
drakmir
Offline
Joined: 01/07/2012
Groups: None

Thanks! For now I'm just updating twice.

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