You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The issue is the base 64 string in question, 'AAAAAAAAAAAAAAAAAAAAAAAAAAABAAAA', also happens to be parsable as a Guid in JsonReader.ReadAsBytesInternal():
if (s.Length == 0)
{
data = new byte[0];
}
else if (ConvertUtils.TryConvertGuid(s, out g))
{
data = g.ToByteArray();
}
else
{
data = Convert.FromBase64String(s);
}
GUIDs have to be the 00000000-0000-0000-0000-000000000000 format which will prevent base64 content accidentally being converted to a GUID before being converted to bytes.
Deserializing the above code in v6.0.8.18111 gives errorneous result
but the same works properly in v4.5.6.14930
NOTE - the encoded string is a byte array having values 1|0 of length 24
v6.0.8.18111 takes this erroneously as an array of length 17
The text was updated successfully, but these errors were encountered: