You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Haytham (JIRA)" <ji...@apache.org> on 2012/10/09 13:56:03 UTC

[jira] [Created] (VALIDATOR-312) Extending country code list in DomainValidator

Haytham created VALIDATOR-312:
---------------------------------

             Summary: Extending country code list in DomainValidator
                 Key: VALIDATOR-312
                 URL: https://issues.apache.org/jira/browse/VALIDATOR-312
             Project: Commons Validator
          Issue Type: New Feature
          Components: Routines
    Affects Versions: 1.4.0 Release
         Environment: Java
            Reporter: Haytham


The validation of the country code in DomainValidator, used in EmailValidator, is done according to a fixed list of country code list.

This is not practical as this list is usually updated, so the check fails for new countries (e.g. South Sudan '.ss').

The DomainValidator is singleton with private constructor so it is not possible to subclass it. We need to provide in someway an updated list so check will not fail.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (VALIDATOR-312) Extending country code list in DomainValidator

Posted by "Haytham (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/VALIDATOR-312?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13472407#comment-13472407 ] 

Haytham commented on VALIDATOR-312:
-----------------------------------

I am working on a patch that would add the new feature.
                
> Extending country code list in DomainValidator
> ----------------------------------------------
>
>                 Key: VALIDATOR-312
>                 URL: https://issues.apache.org/jira/browse/VALIDATOR-312
>             Project: Commons Validator
>          Issue Type: New Feature
>          Components: Routines
>    Affects Versions: 1.4.0 Release
>         Environment: Java
>            Reporter: Haytham
>              Labels: patch
>
> The validation of the country code in DomainValidator, used in EmailValidator, is done according to a fixed list of country code list.
> This is not practical as this list is usually updated, so the check fails for new countries (e.g. South Sudan '.ss').
> The DomainValidator is singleton with private constructor so it is not possible to subclass it. We need to provide in someway an updated list so check will not fail.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira