-
-
Notifications
You must be signed in to change notification settings - Fork 797
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
Optional padding Base64Variant still throws exception on missing padding character #912
Comments
Thank you for reporting this, @Vity01. It does sound like a bug. I think test can be modified not to require ObjectMapper (just so it can remain here, along with fix). |
Thank you for such a quick fix. Good job! |
Thank you for detailed report @Vity01, made it easy to fix! |
Consider this code (2.14.1):
The
diff
content is missing '=' padding character, but even the used Base64Variant does not require for reading (as implemented #646), it throws MissingPadding exception.The problem is
ReaderBasedJsonParser
still uses old methodusesPadding()
and not the new onerequiresPaddingOnRead()
as implemented since 2.12.The text was updated successfully, but these errors were encountered: