Return-Path: Delivered-To: apmail-commons-user-archive@www.apache.org Received: (qmail 51437 invoked from network); 19 May 2010 11:57:50 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 19 May 2010 11:57:50 -0000 Received: (qmail 89046 invoked by uid 500); 19 May 2010 11:57:49 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 88925 invoked by uid 500); 19 May 2010 11:57:48 -0000 Mailing-List: contact user-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Users List" Delivered-To: mailing list user@commons.apache.org Received: (qmail 88917 invoked by uid 99); 19 May 2010 11:57:48 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 May 2010 11:57:48 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of raphael.ackermann@gmail.com designates 209.85.160.171 as permitted sender) Received: from [209.85.160.171] (HELO mail-gy0-f171.google.com) (209.85.160.171) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 May 2010 11:57:40 +0000 Received: by gyf3 with SMTP id 3so3119069gyf.30 for ; Wed, 19 May 2010 04:57:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=2OAVf1CkAOkADT7dRX3lqCDWlwi0/2vQMvGFfyE+KUs=; b=tCiPgjX0liN+2ARtfVaE7P3dFX3rCCRKUbwNnjdxaXYgqGcPgXW17zLNu9ewjhSQJu BnFEh7q+QMjbPp1psbiH/z/TrlMU+5J+w/3j6mu1neOylWoJJ9OfGnfyWqsYedGAbk/v oVDg2WXMz3V3j7ez8ACc8wmdnnuz+SWNvPJK0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=qlzDBc0O9OFCF7ST+RzeXu3CfcViTHiT5m89fTZJhwhTFdmUktv7rGyjZdikL6rlNq cnmikfeEY0NhBg3xLO4gWEiHtAn9871EF/22G4eTug9MhooRaJeC5A5LS1qPvqeC6jZo DqwY+6WYpGhctKiyyI5zWXb6+OjP2OWCyyjE4= MIME-Version: 1.0 Received: by 10.101.174.20 with SMTP id b20mr10161641anp.243.1274270238203; Wed, 19 May 2010 04:57:18 -0700 (PDT) Received: by 10.101.66.4 with HTTP; Wed, 19 May 2010 04:57:18 -0700 (PDT) Date: Wed, 19 May 2010 13:57:18 +0200 Message-ID: Subject: [codec] Base64.decodeBase64(byte[]) behaves differently in commons.codec 1.3 vs 1.4 From: Raphael Ackermann To: user@commons.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org 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 --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@commons.apache.org For additional commands, e-mail: user-help@commons.apache.org