Show the registrant in unauth'ed domain <info>

RFC5731 leaves the registrant field as optional. We
currently don't show it on un-authed info, but we do
show it in WHOIS, so there's no strong reason not to
show it here. By doing so, we maintain the invariant
that registrant must always be present on a
DomainResource object.
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=122645356
This commit is contained in:
cgoldfeder 2016-05-18 10:33:39 -07:00 committed by Ben McIlwain
parent cc11653446
commit cca77709e1
2 changed files with 2 additions and 0 deletions

View file

@ -57,6 +57,7 @@ public class DomainInfoFlow extends BaseDomainInfoFlow<DomainResource, Builder>
.setFullyQualifiedDomainName(existingResource.getFullyQualifiedDomainName()) .setFullyQualifiedDomainName(existingResource.getFullyQualifiedDomainName())
.setRepoId(existingResource.getRepoId()) .setRepoId(existingResource.getRepoId())
.setCurrentSponsorClientId(existingResource.getCurrentSponsorClientId()) .setCurrentSponsorClientId(existingResource.getCurrentSponsorClientId())
.setRegistrant(existingResource.getRegistrant())
// If we didn't do this, we'd get implicit status values. // If we didn't do this, we'd get implicit status values.
.buildWithoutImplicitStatusValues(); .buildWithoutImplicitStatusValues();
} }

View file

@ -8,6 +8,7 @@
xmlns:domain="urn:ietf:params:xml:ns:domain-1.0"> xmlns:domain="urn:ietf:params:xml:ns:domain-1.0">
<domain:name>example.tld</domain:name> <domain:name>example.tld</domain:name>
<domain:roid>%ROID%</domain:roid> <domain:roid>%ROID%</domain:roid>
<domain:registrant>jd1234</domain:registrant>
<domain:clID>NewRegistrar</domain:clID> <domain:clID>NewRegistrar</domain:clID>
</domain:infData> </domain:infData>
</resData> </resData>