You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "amt (JIRA)" <ji...@apache.org> on 2014/07/31 16:02:16 UTC

[jira] [Comment Edited] (VALIDATOR-309) UrlValidator does not validate uppercase URLs

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

amt edited comment on VALIDATOR-309 at 7/31/14 2:01 PM:
--------------------------------------------------------

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

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


was (Author: nutharsh):
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)