Details
-
Bug
-
Resolution: Fixed
-
Blocker
-
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.