mirror of
https://github.com/google/nomulus.git
synced 2025-05-30 09:20:29 +02: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:
parent
46e02c6bd1
commit
5f7bf57cf9
3 changed files with 6 additions and 7 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue