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

Calling incorrect methods on MultiJson when format is :document causing Couchbase::Error::ValueFormat

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • None
    • 1.2.0.dp6
    • library
    • Security Level: Public
    • None

    Description

      The C code calls dump/load on MultiJson, but its interface is encode/decode. Adding the following hack allows me to .set when the format is :document.

      module MultiJson
      class << self
      alias_method :dump, :encode
      alias_method :load, :decode
      end
      end

      Attachments

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

        Activity

          People

            avsej Sergey Avseyev
            chrismcg Chris McGrath
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty