google-nomulus/java/google/registry/dns
larryruili 6280d74f1c Fix CloudDnsWriter glue record A/AAAA arguments
Previously, CloudDnsWriter used InetAddress.toString() to produce the ipv4/6
address string (i.e. 127.0.0.1 or 0:0:0:0:0:0:0:1) used as an argument to the
Cloud DNS API. However, this fails because InetAddress uses the format
"HostName/IpAddress" for toString(), which uses the empty string as a HostName
if unspecified. This resulted in the erroneous use of a prefix slash (i.e.
"/127.0.01") as an InetAddress argument, causing all glue record updates to
fail.

This change replaces InetAddress.toString() with InetAddress.getHostAddress(),
which properly generates the IP address for the InetAddress. This also replaces
a lot of logic in the corresponding test with concrete equivalents, preventing
obvious errors like this from creeping up on us in the future.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=184708896
2018-02-20 15:11:18 -05:00
..
writer Fix CloudDnsWriter glue record A/AAAA arguments 2018-02-20 15:11:18 -05:00
BUILD Move metrics dependencies to artifacts under Maven groupId com.google.monitoring-client 2018-01-04 17:12:35 -05:00
DnsConstants.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
DnsMetrics.java Add label for the DnsWriter in the publishDnsUpdates metrics 2018-01-19 14:53:21 -05:00
DnsModule.java Remove "keepTasks" from ReadDnsQueueAction 2018-02-01 22:05:40 -05:00
DnsQueue.java Switch from Guava Optionals to Java 8 Optionals 2017-10-24 16:53:47 -04:00
DnsWriterProxy.java Requeue domains on wrong DnsWriter. 2017-12-13 12:43:45 -05:00
PublishDnsUpdatesAction.java Rationalize logging statements across codebase 2018-01-19 14:56:45 -05:00
ReadDnsQueueAction.java Remove "keepTasks" from ReadDnsQueueAction 2018-02-01 22:05:40 -05:00
RefreshDnsAction.java Change @Auth to an AutoValue, and created a set of predefined Auths 2017-08-01 16:33:10 -04:00