[SPY-65] set methods not writing couchdb compatible strings Created: 15/Nov/11  Updated: 01/Feb/12  Resolved: 01/Dec/11

Status: Resolved
Project: Spymemcached Java Client
Component/s: library
Affects Version/s: 2.8.0-dp3
Fix Version/s: None
Security Level: Public

Type: Bug Priority: Major
Reporter: Kurtis Assignee: Mike Wiederhold
Resolution: Cannot Reproduce Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment: Win 7, CentOS 5, couchbase 2.0 developer preview

Attachments: Zip Archive CouchbaseTest2.zip    

When using the set method, through either MemcachedClient or CouchbaseClient, and passing in a String in JSON format, the document actually gets written as an attachment rather than a JSON document that CouchDB can parse.

Comment by Kurtis [ 15/Nov/11 ]
Attached a test. The get methods return the proper data, but looking at the records in the couchbase web interface, you will see they are inserted as attachments.
Comment by Kurtis [ 16/Nov/11 ]
This also happens using the "add" method with the CouchbaseClient.
Comment by Perry Krug [ 01/Dec/11 ]
This was discovered to be a bug in the code whereby the application was setting an "_id" value which is a reserved field and once removed the issue went away.
Comment by Perry Krug [ 01/Dec/11 ]
Application can't set "_id" as it is a reserved field.
Generated at Tue Sep 16 00:02:08 CDT 2014 using JIRA 5.2.4#845-sha1:c9f4cc41abe72fb236945343a1f485c2c844dac9.