commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (JIRA)" <>
Subject [jira] [Commented] (CODEC-140) isBase64 returns true for any UTF8 string
Date Wed, 08 May 2013 11:35:16 GMT


Sebb commented on CODEC-140:

Adding further validation to check the length etc would change the behaviour of the method,
which is currently clearly documented to only check for valid characters in the Base64 alphabet.

Not sure it's worth creating 3 other methods to add this extra validation.
> isBase64 returns true for any UTF8 string
> -----------------------------------------
>                 Key: CODEC-140
>                 URL:
>             Project: Commons Codec
>          Issue Type: Bug
>    Affects Versions: 1.6
>         Environment: windows/linux
>            Reporter: Mohit Anchlia
>            Assignee: Julius Davies
> I just called Base64.isBase64("Hello") for instance and it returns true. I thought it
would return true only if it is valid base64 encoded string.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message