You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Sebb (JIRA)" <ji...@apache.org> on 2014/01/30 14:52:09 UTC
[jira] [Closed] (VALIDATOR-298) URL with parenthese is not valid
[ https://issues.apache.org/jira/browse/VALIDATOR-298?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sebb closed VALIDATOR-298.
--------------------------
> URL with parenthese is not valid
> --------------------------------
>
> Key: VALIDATOR-298
> URL: https://issues.apache.org/jira/browse/VALIDATOR-298
> Project: Commons Validator
> Issue Type: Bug
> Reporter: yuhang
>
> The class org.apache.commons.validator.UrlValidator rejects certain valid URL
> According to RFC1738:
> -------------
> HTTP
> httpurl = "http://" hostport [ "/" hpath [ "?" search ]]
> hpath = hsegment *[ "/" hsegment ]
> hsegment = *[ uchar | ";" | ":" | "@" | "&" | "=" ]
> search = *[ uchar | ";" | ":" | "@" | "&" | "=" ]
> -------------
> the httpurl is allowed to contain the parenthese("("|")").
> But the urlvalidator reject it.
> e.g.
> url: www.google.com/abv(de)
> urlvalidator.isValid(url) = false;
> but it's a valid url,in fact.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)