Describe the bug
PrimitiveArrayDeserializers$ByteDeser.deserialize throws InvalidFormatException instead of calling one of the DeserializationProblemHandler methods, probably handleWeirdStringValue.
InvalidFormatException: Cannot access contents of TextNode as binary due to broken
Base64 encoding: Illegal character '␡'
Version information
Tested in 2.13.5, but the bug is definitely present in 2.15
To Reproduce
class Test {
public byte[] data;
}
json:
{"data": "not a valid base64 string"}
Expected behavior
I expect deserializer to call handleWeirdStringValue (or another method of DeserializationProblemHandler, if that's more appropriate) instead of just throwing InvalidFormatException.