commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "amt (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (VALIDATOR-309) UrlValidator does not validate uppercase URLs
Date Thu, 31 Jul 2014 14:02:16 GMT

    [ 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)

Mime
View raw message