mirror of
https://github.com/google/nomulus
synced 2026-05-21 23:31:51 +00:00
Don't validate RDAP nameserver names using validateDomainName
The nameserver may be external, in which case its TLD will not appear in our list of valid TLDs, and the search will be rejected erroneously. Tests for letter case canonicalizations also added at reviewer's suggestion. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=171985702
This commit is contained in:
@@ -39,7 +39,7 @@ import org.joda.time.DateTime;
|
||||
public class HostFlowUtils {
|
||||
|
||||
/** Checks that a host name is valid. */
|
||||
static InternetDomainName validateHostName(String name) throws EppException {
|
||||
public static InternetDomainName validateHostName(String name) throws EppException {
|
||||
checkArgumentNotNull(name, "Must specify host name to validate");
|
||||
if (name.length() > 253) {
|
||||
throw new HostNameTooLongException();
|
||||
|
||||
Reference in New Issue
Block a user