Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 61289 invoked from network); 21 Jan 2011 19:38:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 21 Jan 2011 19:38:06 -0000 Received: (qmail 77489 invoked by uid 500); 21 Jan 2011 19:38:06 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 77381 invoked by uid 500); 21 Jan 2011 19:38:05 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 77371 invoked by uid 99); 21 Jan 2011 19:38:05 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Jan 2011 19:38:05 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Jan 2011 19:38:05 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id p0LJbidL017967 for ; Fri, 21 Jan 2011 19:37:44 GMT Message-ID: <3498934.113891295638664771.JavaMail.jira@thor> Date: Fri, 21 Jan 2011 14:37:44 -0500 (EST) From: "Julius Davies (JIRA)" To: issues@commons.apache.org Subject: [jira] Updated: (CODEC-101) Base64InputStream#read(byte[]) incorrectly returns 0 at end of any stream which is multiple of 3 bytes long MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CODEC-101?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Julius Davies updated CODEC-101: -------------------------------- Attachment: codec-101-another-junit.patch throwing in another JUnit test > Base64InputStream#read(byte[]) incorrectly returns 0 at end of any stream which is multiple of 3 bytes long > ----------------------------------------------------------------------------------------------------------- > > Key: CODEC-101 > URL: https://issues.apache.org/jira/browse/CODEC-101 > Project: Commons Codec > Issue Type: Bug > Affects Versions: 1.4 > Environment: WinXP, JDK 1.6.0_14 > Reporter: Bauke Scholtz > Assignee: Julius Davies > Attachments: codec-101-another-junit.patch, codec-101-fix.patch, codec-101-junit.patch > > > Using new InputStreamReader(new Base64InputStream(in, true)) sometimes fails with "java.io.IOException: Underlying input stream returned zero bytes". > This is been tracked down that Base64InputStream#read(byte[]) incorrectly returns 0 at end of any stream which is multiple of 3 bytes long. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.