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
Gerrit Reviews
For Gerrit Dashboard: NCBC-3728 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
207408,1 | NCBC-3728: DefaultSerializer does not return pass-through bytes when T is byte[] | master | couchbase-net-client | Status: NEW | -1 | +1 |