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

FIT Stellar: Content errors

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 3.6.0
    • None
    • None
    • None

    Description

      Quite a few tests are failing with the same issue concerning content:

      Expected :["world","mars","hello"]
      Actual   :[["world","mars"],[]]

      Expected :{"created":true,"age":12,"foo":"bar"}
      Actual   :{"created":[],"age":[],"foo":[]}

      Root Issue:

      The Serializer used is causing this (ReflectionSystemTextJsonSerializer). When no transcoder is passed to operations, the cluster's default TypeSerializer is used. I suspect the underlying System.Text.JsonSerializer to be at the root if this, since it works quite differently to the Newtonsoft version, however it ultimately likely is caused by how we use it.

      Changing the Cluster's default TypeSerializer to DefaultSerializer.Instance (which uses Newtonsoft's JsonSerializer) fixes these issue.

      Attachments

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

        Activity

          People

            emilien.bevierre Emilien Bevierre
            emilien.bevierre Emilien Bevierre
            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