Uploaded image for project: 'Spymemcached Java Client'
  1. Spymemcached Java Client
  2. SPY-65

set methods not writing couchdb compatible strings

    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.

      No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

        zortness Kurtis created issue -
        zortness Kurtis made changes -
        Field Original Value New Value
        Attachment CouchbaseTest2.zip [ 11823 ]
        perry Perry Krug made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Cannot Reproduce [ 5 ]
        tdondich 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
            }
          }
        } ]

          People

          • Assignee:
            mikew Mike Wiederhold
            Reporter:
            zortness Kurtis
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Gerrit Reviews

              There are no open Gerrit changes