[
https://issues.apache.org/jira/browse/CODEC-140?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13262706#comment-13262706
]
Julius Davies commented on CODEC-140:
-------------------------------------
I don't think it's a bug. The javadoc on isBase64() makes it clear that
"Hello" should return true:
"Tests a given String to see if it contains only valid characters within the
Base64 alphabet. Currently the method treats whitespace as valid."
http://commons.apache.org/codec/apidocs/org/apache/commons/codec/binary/Base64.html#isBase64%28java.lang.String%29
> 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