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

DefaultSerializer does not return pass-through bytes when T is byte[]

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • None
    • None
    • None
    • 1
    • SDK12: Scp Fnc, FIT, Misc, SDK14: CLoE + Others, SDK16: Clmnr Proto & C++, SDK18

    Description

      Motivation

      According to the Serializers RFC the DefaultSerializer is supposed to pass-through bytes to the client when the given type T is a byte array.
      But currently it seems like it tries to treat it as JSON and fails to return byte[] with:
      Newtonsoft.Json.JsonReaderException: Error reading bytes. Unexpected token: StartObject. Path 'content', line 1, position 11.

      Desired Outcome

      Make the DefaultSerializer return the raw server bytes when T is byte[].

      Attachments

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

        Activity

          People

            emilien.bevierre Emilien Bevierre
            emilien.bevierre Emilien Bevierre
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                PagerDuty