Skip to content
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

Common: fix flaky DecodeBase64Url test #372

Open
chuwy opened this issue Oct 11, 2020 · 1 comment
Open

Common: fix flaky DecodeBase64Url test #372

chuwy opened this issue Oct 11, 2020 · 1 comment

Comments

@chuwy
Copy link
Contributor

chuwy commented Oct 11, 2020

DecodeBase64UrlSpec sometimes fails with something like:

Error:    x decodeBase64Url should not return failure on any other string
Error:   Falsified after 94 passed tests.
Error:   > ARG_0: "ON"
Error:   > ARG_0_ORIGINAL: "榆࣑㛣㈢ݰ≙▔顐ᖐ쨺綞䇚海葚﷈ꥬ䆁速䳹ញ䵌굘កḦࢷ횽霎᥆㏲뇈↻O䬘䰦忨覽犆⼜먒ᚍመ츮堔㶣N덡絰튮뻺ᐻ嬎"
Error:   The seed is IdlEhpWy7WYChUK5JYqFXtlLoABSVxyy1r8xege5ZEE=
Error:   
Error:   > Left(could not base64 decode: Last encoded character (before the paddings if any) is a valid base 64 alphabet but not a possible value) is not Right (conversionUtilsSpecs.scala:219)

Seems to be introduced by #362

@chuwy
Copy link
Contributor Author

chuwy commented Oct 11, 2020

Seems to be coming from Apache Commons: https://issues.apache.org/jira/browse/CODEC-263. Also the claim seems to be invalid - we don't expect any string to be a valid base64-encoded line.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant