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

Invalid keys in multiget query cause application crash

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 0.1.0
    • 0.0.12
    • library
    • Security Level: Public
    • None
    • Windows 7 x86_64
      Couchbase 2.0.1 x86_64 Win
      node.js 0.10.2

    Description

      While doing query to couchbase via cbclient.get(keys,function (err, doc, meta)

      { ... }

      ) where keys are invalid (in fact keys were array of array when I've spotted this bug: something like [[1,2,3],[1,5,6]...] ) it cause app crash (no error thrown in callback, callback never called). Application crashes with "Process finished with exit code -1073741819"

      Sample code:
      var keys = [[1,2,3],[4,6,3]];
      couchbase.get(keys, function (err, doc, meta) {
      if (err === null)

      { console.log('All ok'); }

      else

      { console.log('All bad', err); }

      }

      Also docs with that keys are not exist in base.

      Attachments

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

        Activity

          People

            trond Trond Norbye
            SkeLLLa SkeLLLa
            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