mirror of
https://github.com/google/nomulus
synced 2026-08-01 12:56:06 +00:00
Replaces uses of java.net.IDN with our Idn stand in class
java.net.IDN uses outdated IDNA2003. We've created a replacement class that uses the modern UTS46 transitional standard via the IDNA library. This fixes uses of IDN in the RDAP code. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=117243868
This commit is contained in:
committed by
Justine Tunney
parent
46e02c6bd1
commit
5f7bf57cf9
@@ -40,8 +40,6 @@ import com.google.domain.registry.util.Clock;
|
||||
import com.googlecode.objectify.Key;
|
||||
import com.googlecode.objectify.cmd.Query;
|
||||
|
||||
import java.net.IDN;
|
||||
|
||||
import javax.inject.Inject;
|
||||
|
||||
/**
|
||||
@@ -93,7 +91,8 @@ public class RdapEntitySearchAction extends RdapActionBase {
|
||||
throw new NotImplementedException("Entity name search not implemented");
|
||||
} else {
|
||||
// syntax: /rdap/entities?handle=12345-*
|
||||
results = searchByHandle(RdapSearchPattern.create(IDN.toASCII(handleParam.get()), false));
|
||||
// The handle is either the contact roid or the registrar clientId.
|
||||
results = searchByHandle(RdapSearchPattern.create(handleParam.get(), false));
|
||||
}
|
||||
if (results.isEmpty()) {
|
||||
throw new NotFoundException("No entities found");
|
||||
|
||||
Reference in New Issue
Block a user