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

JSON serialization settings not consistently picked up.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 2.0.1
    • 2.0.0
    • library
    • None
    • .NET 4.5.2, Couchbase .NET SDK 2.0.0.1, NewtonSoft.Json 6.0.6

    Description

      Insert picks up serialization settings from the client configuration, but Upsert does not. I do not know if there are other operations that do not pick up the serialization settings. An example:

      using (var cluster = new Cluster(new ClientConfiguration
      {
      SerializationSettings = new JsonSerializerSettings

      { TypeNameHandling = TypeNameHandling.Objects },
      DeserializationSettings = new JsonSerializerSettings { TypeNameHandling = TypeNameHandling.Objects }

      }))
      {
      using (var bucket = cluster.OpenBucket())
      {
      bucket.Insert("testOk", new Entity

      { Id = 1 }

      );
      bucket.Upsert("testFail", new Entity

      { Id = 2 }

      );
      }
      }
      }

      Attachments

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

        Activity

          People

            simonbasle Simon Baslé (Inactive)
            RentierM RentierM
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty