commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Gregory <GGreg...@seagullsoftware.com>
Subject RE: [codec] Base64.decodeBase64(byte[]) behaves differently in commons.codec 1.3 vs 1.4
Date Wed, 19 May 2010 14:21:28 GMT
> -----Original Message-----
> From: Raphael Ackermann [mailto:raphael.ackermann@gmail.com]
> Sent: Wednesday, May 19, 2010 04:57
> To: user@commons.apache.org
> Subject: [codec] Base64.decodeBase64(byte[]) behaves differently in
> commons.codec 1.3 vs 1.4
> 
> Hi
> 
> we switched this week from using commons codec 1.3 to 1.4 and
> discovered a bug in our code.
> 
> we are using it like that:
> 
> String enc = "1";
> Base64.decodeBase64(enc.getBytes())
> 
> in v 1.3 this would return [0]
> in v 1.4 this returns []   which caused a problem in our code.
> 
> Looking at the changes from 1.3 to 1.4 I didn't see one relating to
> such a behaviour change. Is this intentional? Was the old behaviour a
> bug in 1.3 and changing it in v 1.4 fixed it?
> 
> Raphael

At a glance, this might be related to https://issues.apache.org/jira/browse/CODEC-91

The open CODEC issues are: https://issues.apache.org/jira/secure/IssueNavigator.jspa?reset=true&&pid=12310464&status=1&status=3&status=4&sorter/field=issuekey&sorter/order=ASC

Gary

> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
> For additional commands, e-mail: user-help@commons.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Mime
View raw message