commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mohit Anchlia (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CODEC-140) isBase64 returns true for any UTF8 string
Date Wed, 25 Apr 2012 22:34:17 GMT

    [ https://issues.apache.org/jira/browse/CODEC-140?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13262209#comment-13262209
] 

Mohit Anchlia commented on CODEC-140:
-------------------------------------

I thought isBase64 would return only true for those strings that were originally encoded to
base64. For eg:

String b = Base64.encodeBase64(bytes);
Base64.isBase64(b); //return true expected
Base64.isBase64("Hello"); // return false expected since it wasn't encoded to bsae64

I think isBase64 doesn't work this way as I thought it would?
                
> isBase64 returns true for any UTF8 string
> -----------------------------------------
>
>                 Key: CODEC-140
>                 URL: https://issues.apache.org/jira/browse/CODEC-140
>             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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message