google-nomulus/java/google/registry/whois
mountford e8eabe01cf Update WHOIS output format to reflect CL&D and PDT requirements
PDT testing revealed a couple ways in which our WHOIS output was non-compliant. First, the Consistent Labeling & Display policy dictates that the contact IDs must be ROIDs. See rule 11 in https://www.icann.org/resources/pages/rdds-labeling-policy-2017-02-01-en. Second, PDT tests expect that a WHOIS response will treat missing values either by omitting the line entirely, or by including the line with a blank value, but not both. So this is legal:

Phone Number: 123-4567
Phone Number Ext:
Fax Number: 123-4568
Fax Number Ext:

and this is legal:

Phone Number: 123-4567
Fax Number: 123-4568

but this is not:

Phone Number: 123-4567
Phone Number Ext:
Fax Number: 123-4568

In the last example, one extension line is present with a blank value, while the other extension line is omitted. We cannot do both. Therefore, we should update our code to omit lines with no value. Since we can't guarantee that we will always emit all lines that the parse might expect to see, it is safe to use the policy of omitting lines with no value.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=158184150
2017-06-14 10:29:55 -04:00
..
BUILD Set correct auth settings for all actions 2017-03-13 11:22:55 -04:00
DomainLookupCommand.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
DomainOrHostLookupCommand.java Refer to Datastore everywhere correctly by its capitalized form 2017-02-17 12:12:12 -05:00
DomainWhoisResponse.java Update WHOIS output format to reflect CL&D and PDT requirements 2017-06-14 10:29:55 -04:00
NameserverLookupByHostCommand.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
NameserverLookupByIpCommand.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
NameserverWhoisResponse.java Make name and address fields required on Registrar 2017-05-17 11:44:46 -04:00
package-info.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
RegistrarLookupCommand.java Cache Registrars in memory 2017-05-17 12:26:11 -04:00
RegistrarWhoisResponse.java Make WHOIS domain query return conform to ICANN CL&D policy 2017-05-17 11:38:28 -04:00
Whois.java Refactor WhoisReader.readCommand() method to take a now param 2017-03-13 10:45:40 -04:00
WhoisCommand.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
WhoisCommandFactory.java Fix a javadoc error 2017-02-08 17:42:49 -05:00
WhoisException.java Implement retry for transient errors in WHOIS server 2017-04-05 10:18:23 -04:00
WhoisHttpServer.java Set correct auth settings for all actions 2017-03-13 11:22:55 -04:00
WhoisMetrics.java Fix two warnings thrown by Eclipse 2017-04-26 10:36:51 -04:00
WhoisModule.java Add WHOIS metrics classes 2017-03-07 14:01:16 -05:00
WhoisReader.java Refactor WhoisReader.readCommand() method to take a now param 2017-03-13 10:45:40 -04:00
WhoisResponse.java Implement retry for transient errors in WHOIS server 2017-04-05 10:18:23 -04:00
WhoisResponseImpl.java Update WHOIS output format to reflect CL&D and PDT requirements 2017-06-14 10:29:55 -04:00
WhoisServer.java Implement retry for transient errors in WHOIS server 2017-04-05 10:18:23 -04:00