commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Pi (JIRA)" <j...@apache.org>
Subject [jira] [Created] (VALIDATOR-393) UrlValidator rejects domain having underscore
Date Mon, 18 Apr 2016 12:12:25 GMT
Stefan Pi created VALIDATOR-393:
-----------------------------------

             Summary: UrlValidator rejects domain having underscore
                 Key: VALIDATOR-393
                 URL: https://issues.apache.org/jira/browse/VALIDATOR-393
             Project: Commons Validator
          Issue Type: Bug
    Affects Versions: 1.4.1 Release
            Reporter: Stefan Pi


Minmal example:
{code}
UrlValidator urlValidator = new UrlValidator();
boolean isValidWithoutUnderscore = urlValidator.isValid("http://www.example.org/"); // evaluates
to true
boolean isValidWithUnderscore = urlValidator.isValid("http://www.ex_ample.org/"); // evaluates
to false
{code}

Real world example:
{code}
UrlValidator urlValidator = new UrlValidator();
boolean isValidRealWord = urlValidator.isValid("http://marquerite_van_c.tripod.com/"); //
evaluates to false
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message