mirror of
https://github.com/google/nomulus.git
synced 2025-06-25 14:00:55 +02:00
Tighten up restrictions on domain/host naming on EPP resources
All domain/host names should be stored in their canonical forms (puny- coded and lower-cased). This validation is already in the flows, but this adds protection against bad data from other sources, e.g. admin consoles or RDE imports. This also removes an old work-around that temporarily suspended this validation for superusers, because we used to have non-canonicalized data in the system. The non-canonicalized data has since all been cleaned up, so this work-around is no longer necessary. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=146799558
This commit is contained in:
parent
ec55aa5361
commit
d2bc569b4b
11 changed files with 49 additions and 31 deletions
|
@ -71,12 +71,12 @@ public class DomainWhoisResponseTest {
|
|||
createTld("tld");
|
||||
|
||||
hostResource1 = persistResource(new HostResource.Builder()
|
||||
.setFullyQualifiedHostName("NS01.EXAMPLEREGISTRAR.tld")
|
||||
.setFullyQualifiedHostName("ns01.exampleregistrar.tld")
|
||||
.setRepoId("1-TLD")
|
||||
.build());
|
||||
|
||||
hostResource2 = persistResource(new HostResource.Builder()
|
||||
.setFullyQualifiedHostName("NS02.EXAMPLEREGISTRAR.tld")
|
||||
.setFullyQualifiedHostName("ns02.exampleregistrar.tld")
|
||||
.setRepoId("2-TLD")
|
||||
.build());
|
||||
|
||||
|
@ -212,7 +212,7 @@ public class DomainWhoisResponseTest {
|
|||
Key<ContactResource> techResourceKey = Key.create(techContact);
|
||||
|
||||
domainResource = persistResource(new DomainResource.Builder()
|
||||
.setFullyQualifiedDomainName("EXAMPLE.tld")
|
||||
.setFullyQualifiedDomainName("example.tld")
|
||||
.setRepoId("3-TLD")
|
||||
.setLastEppUpdateTime(DateTime.parse("2009-05-29T20:13:00Z"))
|
||||
.setCreationTimeForTest(DateTime.parse("2000-10-08T00:45:00Z"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue