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

amt commented on VALIDATOR-309:
-------------------------------

Till this issue is fixed, Currently what i am adding both uppercase and 
lowercase strings as allowed schemes before constructing UrlValidator.

For examples, adding both "HTTP" and "http" as allowed schemes.

> UrlValidator does not validate uppercase URLs
> ---------------------------------------------
>
>                 Key: VALIDATOR-309
>                 URL: https://issues.apache.org/jira/browse/VALIDATOR-309
>             Project: Commons Validator
>          Issue Type: Bug
>    Affects Versions: 1.4.0 Release
>            Reporter: Rashid Rashidov
>         Attachments: Validator-309-test.patch, Validator-309.patch
>
>
> I am using org.apache.commons.validator.routines.UrlValidator class to 
> validate URLs. The problem is that when the URL is all uppercase, the 
> isValid(...) method returns false.
> For example:
> https://sample.ondemand.com is valid
> HTTPS://SAMPLE.ONDEMAND.COM is not valid
> RFC 1738 states that both URLs are valid.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to