[CODEC-263] Base64.decodeBase64 throw exception - ASF Jira (original) (raw)
- Type:
Bug
- Status: Resolved
- Priority:
Critical
- Resolution: Fixed
- Affects Version/s: 1.13
- Fix Version/s: 1.16
- Environment:
JDK 7/JDK 8
commons-codec 1.13
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
CODEC-280 Base32/64 to allow optional strict/lenient decoding
- Closed
links to