-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PrimitiveArrayDeserializers$ByteDeser.deserialize
ignores DeserializationProblemHandler
for invalid Base64 content
#3784
Comments
The actual bug is in this line: It expects |
Yes, that makes sense. Will need to write a unit test to properly reproduce the problem, ensure handler is called etc. |
Would it be possible to backport it to 2.13? I'm stuck with 2.13 because I need Android API 24. 2.14 requires API 26. |
@or-else Hmmh. Probably, although I am not sure there will be new releases of 2.13. But fix itself could go there. |
@cowtowncoder Would be nice to have a 2.13.6 with this fix. My workaround is pretty ugly. |
Alas, it takes multiple hours to publish a full patch release so there typically has to be a few more important fixes. |
@or-else Actually, I realized that I am not sure how to reproduce this -- exception message suggests you are not actually reading it directly from JSON (which may actually work as expected) but probably first read content as |
PrimitiveArrayDeserializers$ByteDeser.deserialize
ignores DeserializationProblemHandler
for invalid Base64 content
Ok yes; regular read actually worked fine. It's only if reading/converting from |
Correct. |
Describe the bug
PrimitiveArrayDeserializers$ByteDeser.deserialize
throwsInvalidFormatException
instead of calling one of theDeserializationProblemHandler
methods, probablyhandleWeirdStringValue
.Version information
Tested in 2.13.5, but the bug is definitely present in 2.15
To Reproduce
json:
Expected behavior
I expect deserializer to call
handleWeirdStringValue
(or another method ofDeserializationProblemHandler
, if that's more appropriate) instead of just throwingInvalidFormatException
.The text was updated successfully, but these errors were encountered: