google-nomulus/java/google/registry
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
..
backup Create nomulus tool restore command 2017-06-05 18:17:09 -04:00
batch Finish async task metrics data migration 2017-06-14 10:34:41 -04:00
bigquery Change BigQuery call from update to patch 2017-02-06 16:45:23 -05:00
braintree Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
builddefs Add build rules for "nocron" deployments 2017-04-26 10:53:16 -04:00
config Update cloudkms_java with the non-beta version 2017-06-05 18:17:09 -04:00
cron Add response information to TldFanoutAction 2017-04-10 13:32:41 -04:00
dns Refer to Datastore everywhere correctly by its capitalized form 2017-02-17 12:12:12 -05:00
eclipse Add Cloud KMS as dependency of eclipse package 2017-03-21 15:17:04 -04:00
env Remove /_dr security constraint from web.xml files 2017-06-21 10:08:40 -04:00
export Remove xsrfScope and xsrfProtection authentication attributes 2017-06-21 09:46:40 -04:00
flows Remove xsrfScope and xsrfProtection authentication attributes 2017-06-21 09:46:40 -04:00
gcs Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
groups Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
idn Run buildifier on codebase to format BUILD files 2016-11-28 18:15:21 -05:00
keyring Fix stale naming in KmsModule binding for KmsConnection 2017-06-21 09:54:36 -04:00
loadtest Change auth settings on some tools service actions 2017-06-05 18:17:09 -04:00
mapreduce Add MapReduce Input for CommitLogManifest 2017-07-10 11:13:23 -04:00
model Remove temporary @OnLoad used for setting period in DomainApplication 2017-06-21 09:51:28 -04:00
module Remove requireLogin action attribute 2017-06-21 10:04:05 -04:00
monitoring Change FibonacciFitter to just be a utility method 2017-06-14 10:31:29 -04:00
pricing Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
rdap RDAP: Allow domain and nameserver queries with no initial string under certain circumstances 2017-07-10 11:16:03 -04:00
rde Change auth settings on RdeStagingAction 2017-06-05 18:17:09 -04:00
request Remove requireLogin action attribute 2017-06-21 10:04:05 -04:00
security Remove XsrfTokenManager fallback for validating legacy tokens 2017-03-21 15:36:31 -04:00
storage/drive Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
tldconfig/idn Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
tmch Cache Registrars in memory 2017-05-17 12:26:11 -04:00
tools Remove FixDomainTransferDataCommand 2017-06-21 09:53:03 -04:00
ui Set compatible_with on individual targets rather than use default_compatible_with. 2017-07-10 11:09:26 -04:00
util Add fine level logging methods 2017-06-14 10:40:49 -04:00
whois Update WHOIS output format to reflect CL&D and PDT requirements 2017-06-14 10:29:55 -04:00
xjc Add the ability to generate RDE deposits in lenient mode 2017-05-17 12:22:49 -04:00
xml Add the ability to generate RDE deposits in lenient mode 2017-05-17 12:22:49 -04:00
BUILD Document procedural changes to restore 2017-05-03 10:43:25 -04:00
repositories.bzl Update cloudkms_java with the non-beta version 2017-06-05 18:17:09 -04:00