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

        

Reply via email to