commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "yuhang (Created) (JIRA)" <j...@apache.org>
Subject [jira] [Created] (VALIDATOR-298) URL with parenthese is not valid
Date Thu, 27 Oct 2011 09:12:32 GMT
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

        

Mime
View raw message