commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gary Gregory (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CODEC-228) URLCodec.decode does not throw DecoderException with invalid UTF-8
Date Sun, 26 Mar 2017 04:30:41 GMT

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

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

Why?

https://www.ietf.org/rfc/rfc1738.txt says:
{quote}
Thus, only alphanumerics, the special characters "$-_.+!*'(),", and
   reserved characters used for their reserved purposes may be used
   unencoded within a URL.
{quote}

> 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