commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Gaul (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CODEC-228) URLCodec.decode does not throw DecoderException with invalid UTF-8
Date Fri, 31 Mar 2017 03:02:41 GMT

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

Andrew Gaul commented on CODEC-228:
-----------------------------------

Agree that this is logical behavior is {{URLCodec}} wants to mimic Java {{URLDecoder}}.  However
I want a validator to catch issues like this:

https://github.com/andrewgaul/s3proxy/issues/201

Is this outside the scope of Commons Codec?  Could you add an optional strict parsing mode?

> 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.3.15#6346)

Mime
View raw message