mirror of
https://github.com/google/nomulus.git
synced 2025-05-13 07:57:13 +02: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:
parent
9d1eb0d429
commit
326cf698e0
15 changed files with 113 additions and 91 deletions
|
@ -169,7 +169,7 @@ public class DomainFlowUtils {
|
|||
*
|
||||
* @see #validateDomainNameWithIdnTables(InternetDomainName)
|
||||
*/
|
||||
static InternetDomainName validateDomainName(String name)
|
||||
public static InternetDomainName validateDomainName(String name)
|
||||
throws EppException {
|
||||
if (!ALLOWED_CHARS.matchesAllOf(name)) {
|
||||
throw new BadDomainNameCharacterException();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue