You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Julius Davies (JIRA)" <ji...@apache.org> on 2011/01/21 20:43:44 UTC

[jira] Resolved: (CODEC-101) Base64InputStream#read(byte[]) incorrectly returns 0 at end of any stream which is multiple of 3 bytes long

     [ https://issues.apache.org/jira/browse/CODEC-101?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Julius Davies resolved CODEC-101.
---------------------------------

       Resolution: Fixed
    Fix Version/s: 1.5

The three patches are committed to trunk now.

> 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
>             Fix For: 1.5
>
>         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.