Uploaded image for project: 'Couchbase .NET client library'
  1. Couchbase .NET client library
  2. NCBC-1350

DefaultValueHandling.IgnoreAndPopulate Causes NRE With Bad Query Syntax

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.4.0
    • Fix Version/s: 2.4.4
    • Component/s: library
    • Labels:
      None

      Description

      Steps to reproduce:

      1. Configure client to use DefaultSerializer with DeserializerSettings.DefaultValueHandling = DefaultValueHandling.IgnoreAndPopulate
      2. Execute a N1QL query with bad syntax
      3. Receive NRE

      System.ArgumentNullException: Value cannot be null.
      Parameter name: source
      at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
      at Couchbase.N1QL.QueryResultData`1.ToQueryResult() in C:\Users\bburnett\Source\Repos\couchbase-net-client\Src\Couchbase\N1QL\QueryResult.cs:line 209
      at Couchbase.N1QL.QueryClient.<ExecuteQueryAsync>d__20`1.MoveNext() in C:\Users\bburnett\Source\Repos\couchbase-net-client\Src\Couchbase\N1QL\QueryClient.cs:line 396

      From forum post:
      https://forums.couchbase.com/t/internal-error-exception-when-an-n1ql-error-request-is-sent/11925

        Attachments

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

          Activity

          Hide
          jmorris Jeff Morris added a comment -

          Brant Burnett - is this ready for review?

          Show
          jmorris Jeff Morris added a comment - Brant Burnett - is this ready for review?
          Hide
          btburnett3 Brant Burnett added a comment -

          Yes, ready for review

          Show
          btburnett3 Brant Burnett added a comment - Yes, ready for review

            People

            • Assignee:
              btburnett3 Brant Burnett
              Reporter:
              btburnett3 Brant Burnett
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes

                  PagerDuty

                  Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.