Uploaded image for project: 'Couchbase node.js Client Library'
  1. Couchbase node.js Client Library
  2. JSCBC-698

MutateInSpec.CasPlaceholder won't work because value arg is JSON.stringify-d

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 3.0.3
    • None
    • library
    • None
    • 1

    Description

      static _create(opType, path, value, options) {

      .

      .

      .

      if (value ===CasPlaceholder ) {

      This will always return false, because in the call to _create, 'value' is always JSON.stringify-d.  

      CasPlaceholder is not a string.  Also JSON.stringify(CasPlaceholder) is 'undefined'

        static replace(path, value, options)

      {     return this._create(       binding.LCBX_SDCMD_REPLACE, path, JSON.stringify(value), options);   }

       

      Attachments

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

        Activity

          People

            brett19 Brett Lawson
            michael.reiche Michael Reiche
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty