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

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.4.0
    • 2.4.4
    • library
    • 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

        For Gerrit Dashboard: NCBC-1350
        # Subject Branch Project Status CR V

        Activity

          jmorris Jeff Morris added a comment -

          Brant Burnett - is this ready for review?

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

          Yes, ready for review

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

          People

            btburnett3 Brant Burnett
            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