Uploaded image for project: 'Couchbase Ruby client library'
  1. Couchbase Ruby client library
  2. RCBC-67

Append with :format => :plain seems to corrupt value

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 1.1.3
    • Fix Version/s: None
    • Component/s: None
    • Security Level: Public
    • Labels:
      None
    • Environment:
      mac osx

      Description

      >> require 'couchbase'
      => true
      >> cb= Couchbase.new
      => #<Couchbase::Bucket:0x10dd89a10 "http://localhost:8091/pools/default/buckets/default/" default_format=:document, default_flags=0x0, quiet=true, connected=true, timeout=2500000>
      >> cb.set('karen', 'old')
      => 1585267068834414592
      >> cb.append('karen', 'new', :format => :plain)
      => 1657324662872342528
      >> cb.get('karen')
      Couchbase::Error::ValueFormat: unable to convert value
      from /Library/Ruby/Gems/1.8/gems/yajl-ruby-1.1.0/lib/yajl/json_gem/parsing.rb:23:in `get'
      from (irb):5
      from :0
      >>

      When I telnet I get this:

      Karens-MacBook-Pro:~ kzeller$ telnet localhost 11211
      Trying ::1...
      Connected to localhost.
      Escape character is '^]'.
      get karen
      VALUE karen 0 8
      "old"new

      so the value is appended, but somehow the SDK thinks the content is JSON, not plain.

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

        Activity

        kzeller kzeller created issue -
        avsej Sergey Avseyev made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Won't Fix [ 2 ]
        avsej Sergey Avseyev made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        brett19 Brett Lawson made changes -
        Workflow jira [ 18843 ] Couchbase SDK Workflow [ 44854 ]

          People

          • Assignee:
            avsej Sergey Avseyev
            Reporter:
            kzeller kzeller
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Gerrit Reviews

              There are no open Gerrit changes