mirror of
https://github.com/google/nomulus
synced 2026-01-08 23:23:32 +00:00
This should have been getting turned into an InvalidHostNameException, but wasn't. I've added tests for HostFlowUtils verifying the correct behavior for this. Idn.toASCII() can throw IllegalArgumentException for some combinations of input, including hostnames with a leading hyphen, so the call should be inside the try block that turns IAEs into InvalidHostNameExceptions. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=139373849