Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Cannot Reproduce
-
Affects Version/s: 2.8.0-dp3
-
Fix Version/s: None
-
Component/s: library
-
Security Level: Public
-
Labels:None
-
Environment:Win 7, CentOS 5, couchbase 2.0 developer preview
Description
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.
Activity
- All
- Comments
- Work Log
- History
- Activity
- Gerrit Reviews
Kurtis
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Attachment | CouchbaseTest2.zip [ 11823 ] |
Perry Krug
made changes -
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Resolution | Cannot Reproduce [ 5 ] |
Taylor Dondich
made changes -
| Comment |
[ This happens with the PHP Couchbase API. Here's a test script:
$cb = new Couchbase(); $cb->addCouchbaseServer("localhost"); $test = new stdClass(); $test->first_name = "Joe"; $test->last_name = "User"; $cb->set("test", $test); And the output from couchbase admin describing the doc: { "_id": "test", "_rev": "1-000006d8a5159e820000004a04000000", "_attachments": { "value": { "content_type": "application/content-stream", "revpos": 1, "length": 74, "stub": true } } } ] |