google-nomulus/java/google/registry/rdap
mountford 5a31be12ba RDAP: Allow domain and nameserver queries with no initial string under certain circumstances
Up to now, our search wildcard rules have been that there must be an initial string of at least two characters. If a wildcard is present after that, it can optionally be followed by a suffix specifying the TLD (for domains) or domain (for nameservers). So domain queries can look like:

example.tld
ex*
ex*.tld

and nameserver queries can look like:

ns1.example.tld
ns*.example.tld
ns*

But you can't do a domain query for *.tld, nor a nameserver query for *.example.tld. It would be nice to support such queries, and the presence of a valid TLD or domain makes them relatively efficient. This CL relaxes the restrictions to allow wildcards with no initial string if the suffix is present. For nameservers, the suffix must be a valid domain in the system, to avoid having to loop through all nameservers.

A side effect of the changes is to fix a shortcoming in the logic which caused wildcard nameserver searches to fail if the specified domain suffix referred to an external domain.

Entity searches are not affected, since they do not support suffixes.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=159856563
2017-07-10 11:16:03 -04:00
..
BUILD Set correct auth settings for all actions 2017-03-13 11:22:55 -04:00
RdapActionBase.java RDAP: Allow domain and nameserver queries with no initial string under certain circumstances 2017-07-10 11:16:03 -04:00
RdapAutnumAction.java Add golden files for request component routing maps 2017-06-05 18:17:09 -04:00
RdapDomainAction.java Set correct auth settings for all actions 2017-03-13 11:22:55 -04:00
RdapDomainSearchAction.java RDAP: Allow domain and nameserver queries with no initial string under certain circumstances 2017-07-10 11:16:03 -04:00
RdapEntityAction.java Cache Registrars in memory 2017-05-17 12:26:11 -04:00
RdapEntitySearchAction.java RDAP: Allow domain and nameserver queries with no initial string under certain circumstances 2017-07-10 11:16:03 -04:00
RdapHelpAction.java Set correct auth settings for all actions 2017-03-13 11:22:55 -04:00
RdapIcannStandardInformation.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
RdapIpAction.java Add golden files for request component routing maps 2017-06-05 18:17:09 -04:00
RdapJsonFormatter.java Remove the ofy().load() inside of HostResource.cloneProjectedAtTime 2017-03-13 11:22:55 -04:00
RdapModule.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
RdapNameserverAction.java Set correct auth settings for all actions 2017-03-13 11:22:55 -04:00
RdapNameserverSearchAction.java RDAP: Allow domain and nameserver queries with no initial string under certain circumstances 2017-07-10 11:16:03 -04:00
RdapSearchPattern.java RDAP: Allow domain and nameserver queries with no initial string under certain circumstances 2017-07-10 11:16:03 -04:00
RdapSearchResults.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
RdapUtils.java Cache Registrars in memory 2017-05-17 12:26:11 -04:00