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

LookupIn operations raise PathNotFound instead of PathMismatch errors when count is requested on a path that is not an array

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 3.4.4
    • None
    • None
    • None
    • 1
    • SDK32

    Description

      For example,

      collection.upsert('test',{:foo=>10, :bar=>{:nested => 11}})
      res = collection.lookup_in('test', [LookupInSpec.count('foo')])
      res.content(0)
      

      The last line should raise a PathMismatch error, it raises PathNotFound instead

      The following failing FIT test should pass after this is fixed:
       * pathMismatchCountLookup

      Attachments

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

        Activity

          People

            Dimitris.Christodoulou Dimitris Christodoulou
            Dimitris.Christodoulou Dimitris Christodoulou
            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