[
https://issues.apache.org/jira/browse/VALIDATOR-298?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13154813#comment-13154813
]
Sebb commented on VALIDATOR-298:
--------------------------------
Note: the current RFC for URIs is RFC3986 [1]
[1] http://tools.ietf.org/rfc/rfc3986.txt
> 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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira