[jira] [Commented] (VALIDATOR-340) Add new TLDs

2014-08-24 Thread Benedikt Ritter (JIRA)

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

Benedikt Ritter commented on VALIDATOR-340:
---

I've created VALIDATOR-341 for this. Patches wellcome!

> Add new TLDs
> 
>
> Key: VALIDATOR-340
> URL: https://issues.apache.org/jira/browse/VALIDATOR-340
> Project: Commons Validator
>  Issue Type: Improvement
>  Components: Framework
>Affects Versions: 1.4.0 Release
> Environment: Live
>Reporter: Ken Montgomery
>  Labels: TLD, domains, email
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> The current commons-validator-1.4.0.jar does not include any domains released 
> after 2012.
> org.apache.commons.validator.routines.EmailValidator;
> Then on to the method isValidGenericTld(tld)
> Which uses the list
> private static final String[] GENERIC_TLDS = new String[] {
> "aero", // air transport industry
> "asia", // Pan-Asia/Asia Pacific
> "biz", // businesses
> "cat", // Catalan linguistic/cultural community
> "com", // commercial enterprises
> "coop", // cooperative associations
> "info", // informational sites
> "jobs", // Human Resource managers
> "mobi", // mobile products and services
> "museum", // museums, surprisingly enough
> "name", // individuals' sites
> "net", // internet support infrastructure/business
> "org", // noncommercial organizations
> "pro", // credentialed professionals and entities
> "tel", // contact data for businesses and individuals
> "travel", // entities in the travel industry
> "gov", // United States Government
> "edu", // accredited postsecondary US education entities
> "mil", // United States Military
> "int" // organizations established by international treaty
> };
> This list does not include any of the new domains. They are therefore seen as 
> invalid.
> See New Domains (about 300) 
> http://newgtlds.icann.org/en/program-status/delegated-strings
> From http://commons.apache.org/proper/commons-validator/changes-report.html
> I can see that version 1.4.0 is the current version even though it was 
> released on 2012-02-03



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (VALIDATOR-340) Add new TLDs

2014-08-24 Thread Ken Montgomery (JIRA)

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

Ken Montgomery commented on VALIDATOR-340:
--

 I do not need the TLD validation to be optional. I need it to validate against 
the current full valid list. This list is updated from time to time. The 
solution needs to take this into account and not just add more TLDs to the 
hard-coded list. That is only a short time workaround, not a fix.


> Add new TLDs
> 
>
> Key: VALIDATOR-340
> URL: https://issues.apache.org/jira/browse/VALIDATOR-340
> Project: Commons Validator
>  Issue Type: Improvement
>  Components: Framework
>Affects Versions: 1.4.0 Release
> Environment: Live
>Reporter: Ken Montgomery
>  Labels: TLD, domains, email
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> The current commons-validator-1.4.0.jar does not include any domains released 
> after 2012.
> org.apache.commons.validator.routines.EmailValidator;
> Then on to the method isValidGenericTld(tld)
> Which uses the list
> private static final String[] GENERIC_TLDS = new String[] {
> "aero", // air transport industry
> "asia", // Pan-Asia/Asia Pacific
> "biz", // businesses
> "cat", // Catalan linguistic/cultural community
> "com", // commercial enterprises
> "coop", // cooperative associations
> "info", // informational sites
> "jobs", // Human Resource managers
> "mobi", // mobile products and services
> "museum", // museums, surprisingly enough
> "name", // individuals' sites
> "net", // internet support infrastructure/business
> "org", // noncommercial organizations
> "pro", // credentialed professionals and entities
> "tel", // contact data for businesses and individuals
> "travel", // entities in the travel industry
> "gov", // United States Government
> "edu", // accredited postsecondary US education entities
> "mil", // United States Military
> "int" // organizations established by international treaty
> };
> This list does not include any of the new domains. They are therefore seen as 
> invalid.
> See New Domains (about 300) 
> http://newgtlds.icann.org/en/program-status/delegated-strings
> From http://commons.apache.org/proper/commons-validator/changes-report.html
> I can see that version 1.4.0 is the current version even though it was 
> released on 2012-02-03



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (VALIDATOR-340) Add new TLDs

2014-08-20 Thread Ken Montgomery (JIRA)

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

Ken Montgomery commented on VALIDATOR-340:
--

What is needed is an API call that returns a list of gTLDs so that no 
hard-coded list is required.
See http://ntldstats-api.readthedocs.org/info.html#get-detailed-list-of-all-tlds


> Add new TLDs
> 
>
> Key: VALIDATOR-340
> URL: https://issues.apache.org/jira/browse/VALIDATOR-340
> Project: Commons Validator
>  Issue Type: Improvement
>  Components: Framework
>Affects Versions: 1.4.0 Release
> Environment: Live
>Reporter: Ken Montgomery
>  Labels: TLD, domains, email
> Fix For: 1.4.1
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> The current commons-validator-1.4.0.jar does not include any domains released 
> after 2012.
> org.apache.commons.validator.routines.EmailValidator;
> Then on to the method isValidGenericTld(tld)
> Which uses the list
> private static final String[] GENERIC_TLDS = new String[] {
> "aero", // air transport industry
> "asia", // Pan-Asia/Asia Pacific
> "biz", // businesses
> "cat", // Catalan linguistic/cultural community
> "com", // commercial enterprises
> "coop", // cooperative associations
> "info", // informational sites
> "jobs", // Human Resource managers
> "mobi", // mobile products and services
> "museum", // museums, surprisingly enough
> "name", // individuals' sites
> "net", // internet support infrastructure/business
> "org", // noncommercial organizations
> "pro", // credentialed professionals and entities
> "tel", // contact data for businesses and individuals
> "travel", // entities in the travel industry
> "gov", // United States Government
> "edu", // accredited postsecondary US education entities
> "mil", // United States Military
> "int" // organizations established by international treaty
> };
> This list does not include any of the new domains. They are therefore seen as 
> invalid.
> See New Domains (about 300) 
> http://newgtlds.icann.org/en/program-status/delegated-strings
> From http://commons.apache.org/proper/commons-validator/changes-report.html
> I can see that version 1.4.0 is the current version even though it was 
> released on 2012-02-03



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (VALIDATOR-340) Add new TLDs

2014-08-19 Thread Adrian Crum (JIRA)

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

Adrian Crum commented on VALIDATOR-340:
---

A suggestion I made in one of the (many) duplicate issues is to make TLD 
validation optional. As one reporter commented, a perfectly valid local domain 
will fail validation.


> Add new TLDs
> 
>
> Key: VALIDATOR-340
> URL: https://issues.apache.org/jira/browse/VALIDATOR-340
> Project: Commons Validator
>  Issue Type: Improvement
>  Components: Framework
>Affects Versions: 1.4.0 Release
> Environment: Live
>Reporter: Ken Montgomery
>  Labels: TLD, domains, email
> Fix For: 1.4.1
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> The current commons-validator-1.4.0.jar does not include any domains released 
> after 2012.
> org.apache.commons.validator.routines.EmailValidator;
> Then on to the method isValidGenericTld(tld)
> Which uses the list
> private static final String[] GENERIC_TLDS = new String[] {
> "aero", // air transport industry
> "asia", // Pan-Asia/Asia Pacific
> "biz", // businesses
> "cat", // Catalan linguistic/cultural community
> "com", // commercial enterprises
> "coop", // cooperative associations
> "info", // informational sites
> "jobs", // Human Resource managers
> "mobi", // mobile products and services
> "museum", // museums, surprisingly enough
> "name", // individuals' sites
> "net", // internet support infrastructure/business
> "org", // noncommercial organizations
> "pro", // credentialed professionals and entities
> "tel", // contact data for businesses and individuals
> "travel", // entities in the travel industry
> "gov", // United States Government
> "edu", // accredited postsecondary US education entities
> "mil", // United States Military
> "int" // organizations established by international treaty
> };
> This list does not include any of the new domains. They are therefore seen as 
> invalid.
> See New Domains (about 300) 
> http://newgtlds.icann.org/en/program-status/delegated-strings
> From http://commons.apache.org/proper/commons-validator/changes-report.html
> I can see that version 1.4.0 is the current version even though it was 
> released on 2012-02-03



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (VALIDATOR-340) Add new TLDs

2014-08-19 Thread Ken Montgomery (JIRA)

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

Ken Montgomery commented on VALIDATOR-340:
--

Thank you for your email.

I will be out of the office on Wednesday 20/08/2014 returning on Thursday 
21/08/2014.
If you require a more immediate response please email 
dlhqapdmapplicationsupp...@auspost.com.au

Regards
Ken Montgomery
Application Support Manager
Australia Post Digital Mailbox
Level 1/136 Exhibition Street, Melbourne VIC 3000



> Add new TLDs
> 
>
> Key: VALIDATOR-340
> URL: https://issues.apache.org/jira/browse/VALIDATOR-340
> Project: Commons Validator
>  Issue Type: Improvement
>  Components: Framework
>Affects Versions: 1.4.0 Release
> Environment: Live
>Reporter: Ken Montgomery
>  Labels: TLD, domains, email
> Fix For: 1.4.1
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> The current commons-validator-1.4.0.jar does not include any domains released 
> after 2012.
> org.apache.commons.validator.routines.EmailValidator;
> Then on to the method isValidGenericTld(tld)
> Which uses the list
> private static final String[] GENERIC_TLDS = new String[] {
> "aero", // air transport industry
> "asia", // Pan-Asia/Asia Pacific
> "biz", // businesses
> "cat", // Catalan linguistic/cultural community
> "com", // commercial enterprises
> "coop", // cooperative associations
> "info", // informational sites
> "jobs", // Human Resource managers
> "mobi", // mobile products and services
> "museum", // museums, surprisingly enough
> "name", // individuals' sites
> "net", // internet support infrastructure/business
> "org", // noncommercial organizations
> "pro", // credentialed professionals and entities
> "tel", // contact data for businesses and individuals
> "travel", // entities in the travel industry
> "gov", // United States Government
> "edu", // accredited postsecondary US education entities
> "mil", // United States Military
> "int" // organizations established by international treaty
> };
> This list does not include any of the new domains. They are therefore seen as 
> invalid.
> See New Domains (about 300) 
> http://newgtlds.icann.org/en/program-status/delegated-strings
> From http://commons.apache.org/proper/commons-validator/changes-report.html
> I can see that version 1.4.0 is the current version even though it was 
> released on 2012-02-03



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Commented] (VALIDATOR-340) Add new TLDs

2014-08-19 Thread Sebb (JIRA)

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

Sebb commented on VALIDATOR-340:


It might make sense to provide the TLDs as a resource file, rather than 
embedding the strings as constants.
[Likewise for the country codes, though these change less frequently]
This could allow users to replace the file if necessary without needing to 
download a new version of the code.

A crude way to do this would be to replace the resource file in the jar.
It would be better if the user could provide a resource file with any required 
additions.
Not sure if there is a use-case for dropping TLDs.

Note that EmailValidator now uses DomainValidator to check the domain string.

> Add new TLDs
> 
>
> Key: VALIDATOR-340
> URL: https://issues.apache.org/jira/browse/VALIDATOR-340
> Project: Commons Validator
>  Issue Type: Improvement
>  Components: Framework
>Affects Versions: 1.4.0 Release
> Environment: Live
>Reporter: Ken Montgomery
>  Labels: TLD, domains, email
> Fix For: 1.4.1
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> The current commons-validator-1.4.0.jar does not include any domains released 
> after 2012.
> org.apache.commons.validator.routines.EmailValidator;
> Then on to the method isValidGenericTld(tld)
> Which uses the list
> private static final String[] GENERIC_TLDS = new String[] {
> "aero", // air transport industry
> "asia", // Pan-Asia/Asia Pacific
> "biz", // businesses
> "cat", // Catalan linguistic/cultural community
> "com", // commercial enterprises
> "coop", // cooperative associations
> "info", // informational sites
> "jobs", // Human Resource managers
> "mobi", // mobile products and services
> "museum", // museums, surprisingly enough
> "name", // individuals' sites
> "net", // internet support infrastructure/business
> "org", // noncommercial organizations
> "pro", // credentialed professionals and entities
> "tel", // contact data for businesses and individuals
> "travel", // entities in the travel industry
> "gov", // United States Government
> "edu", // accredited postsecondary US education entities
> "mil", // United States Military
> "int" // organizations established by international treaty
> };
> This list does not include any of the new domains. They are therefore seen as 
> invalid.
> See New Domains (about 300) 
> http://newgtlds.icann.org/en/program-status/delegated-strings
> From http://commons.apache.org/proper/commons-validator/changes-report.html
> I can see that version 1.4.0 is the current version even though it was 
> released on 2012-02-03



--
This message was sent by Atlassian JIRA
(v6.2#6252)