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

Integer transcoding from 1.3.10 to 2.0.3 is incorrect

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Blocker
    • 2.1.0
    • None
    • None
    • None

    Description

      The DefaultTranscoder in 2.0 treats all values as either a string, a JSON encoded value, or as a byte array. 1.3.X primarily uses the .NET Type system to encode/decode. When 2.0 tries to decode a packet written by 1.3.X, it treats the type as the actual CLR type and uses the DefaultConverter to convert it from a byte array to it's encoded type. It uses the DefaultTranscoder to do this which assumes network byte ordering, since it's primary purpose is reading packet header information. The problem is that the body of the packet does not use network byte ordering, thus the converter swaps the bytes. This only impacts numeric types.

      Attachments

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

        Activity

          People

            jmorris Jeff Morris
            jdillon Jeff Dillon (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty