[jira] [Commented] (CODEC-228) URLCodec.decode does not throw DecoderException with invalid UTF-8

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[jira] [Commented] (CODEC-228) URLCodec.decode does not throw DecoderException with invalid UTF-8

JIRA jira@apache.org

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

Gary Gregory commented on CODEC-228:
------------------------------------

It seems reasonable to me to add this extra error checking functionality. How should it be surfaced to developers?

> URLCodec.decode does not throw DecoderException with invalid UTF-8
> ------------------------------------------------------------------
>
>                 Key: CODEC-228
>                 URL: https://issues.apache.org/jira/browse/CODEC-228
>             Project: Commons Codec
>          Issue Type: Bug
>    Affects Versions: 1.10
>            Reporter: Andrew Gaul
>
> I expect the following to throw {{DecoderException}}:
> {code:java}
> new URLCodec().decode("%AE%8A-", "UTF-8");
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
Loading...