[CODEC-263] Base64.decodeBase64 throw exception - ASF Jira (original) (raw)

Codec upgrade to 1.13, code throw exception as follows:

@Test public void test(){ Base64.decodeBase64("publishMessage"); }

exception like:

java.lang.IllegalArgumentException: Last encoded character (before the paddings if any) is a valid base 64 alphabet but not a possible value

at org.apache.commons.codec.binary.Base64.validateCharacter(Base64.java:798)
at org.apache.commons.codec.binary.Base64.decode(Base64.java:472)
at org.apache.commons.codec.binary.BaseNCodec.decode(BaseNCodec.java:412)
at org.apache.commons.codec.binary.BaseNCodec.decode(BaseNCodec.java:395)
at org.apache.commons.codec.binary.Base64.decodeBase64(Base64.java:694)

is related to

Improvement - An improvement or enhancement to an existing feature or task. CODEC-280 Base32/64 to allow optional strict/lenient decoding

links to