commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christopher Schultz (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CODEC-234) Base32.decode should support lowercase letters
Date Tue, 06 Jun 2017 19:18:18 GMT

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

Christopher Schultz updated CODEC-234:
--------------------------------------
    Attachment: CODEC-234-2.diff

An updated patch:

1. 0->O and 1->I is not optional, via a setter
2. Base32 Hex encoding supports lowercase decoding, too
3. Additional test cases


> Base32.decode should support lowercase letters
> ----------------------------------------------
>
>                 Key: CODEC-234
>                 URL: https://issues.apache.org/jira/browse/CODEC-234
>             Project: Commons Codec
>          Issue Type: Improvement
>    Affects Versions: 1.10
>            Reporter: Christopher Schultz
>            Priority: Minor
>         Attachments: CODEC-234-2.diff, CODEC-234.diff
>
>
> Base32.decode accepts a String input, but any lowercase characters are ignored -- e.g.
Base32.decode("abcd2345") will give a different result than Base32.decode("ABCD1234") with
no errors and a surprise to a developer.
> Accepting any case is desirable, as RFC 4648 makes it clear that case-insensitivity is
a goal for Base32 encoding.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message