You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Brendan Dahl (JIRA)" <ji...@apache.org> on 2011/02/23 21:36:38 UTC

[jira] Created: (VALIDATOR-291) UrlValidator, underscores in domain names

UrlValidator, underscores in domain names
-----------------------------------------

                 Key: VALIDATOR-291
                 URL: https://issues.apache.org/jira/browse/VALIDATOR-291
             Project: Commons Validator
          Issue Type: Bug
          Components: Framework
    Affects Versions: 1.3.1 Release
            Reporter: Brendan Dahl


String[] schemes = {"http"};
UrlValidator urlValidator = new UrlValidator(schemes);
urlValidator.isValid("http://xavier_shane.mydagsite.com/") == false

this is a real and valid website url.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Resolved: (VALIDATOR-291) UrlValidator, underscores in domain names

Posted by "Sebb (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/VALIDATOR-291?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sebb resolved VALIDATOR-291.
----------------------------

    Resolution: Invalid

Sorry, but underscore is not valid in host names.

See RFC952/Assumptions 1: http://tools.ietf.org/html/rfc952

> UrlValidator, underscores in domain names
> -----------------------------------------
>
>                 Key: VALIDATOR-291
>                 URL: https://issues.apache.org/jira/browse/VALIDATOR-291
>             Project: Commons Validator
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: 1.3.1 Release
>            Reporter: Brendan Dahl
>
> String[] schemes = {"http"};
> UrlValidator urlValidator = new UrlValidator(schemes);
> urlValidator.isValid("http://xavier_shane.mydagsite.com/") == false
> this is a real and valid website url.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira