google-nomulus/java/google/registry
nickfelt ec4ffe53f0 Clean up flow validation of registration periods
This tidies up some logic in the flows that checks registration periods, so that in the create flows we're consistently checking that the requested number of years is <= 10 right away (DomainCreateFlow was deferring it until very late, including after custom logic ran, for no good reason I can see).

It also refactors the validateRegistrationPeriod() overload used by DomainRenewFlow to take the newExpirationTime directly, and just check to ensure that it's >= to now.plusYears(10) (with leap-safety just in case).  This is a much simpler check than before, which recomputed the newExpirationTime separately from the logic used by DomainRenewFlow itself (always dangerous) and did a more convoluted and unnecessary comparison involving extendRegistrationWithCap().

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=151002960
2017-03-27 13:04:19 -04:00
..
backup Refer to Datastore everywhere correctly by its capitalized form 2017-02-17 12:12:12 -05:00
batch Remove the ofy().load() inside of HostResource.cloneProjectedAtTime 2017-03-13 11:22:55 -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 Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
config Add missing newline to default-config.yaml 2017-03-07 13:22:52 -05:00
cron Use Immutable types for static final fields 2017-03-07 13:53:46 -05: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 Add mapreduce cleanup action 2017-03-13 10:24:57 -04:00
export Refer to Datastore everywhere correctly by its capitalized form 2017-02-17 12:12:12 -05:00
flows Clean up flow validation of registration periods 2017-03-27 13:04:19 -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 Apply ComparatorGenerator to Keyring 2017-03-21 15:15:31 -04:00
loadtest Cut over to generating new HMAC-based XSRF tokens 2017-03-13 11:22:56 -04:00
mapreduce Refer to Datastore everywhere correctly by its capitalized form 2017-02-17 12:12:12 -05:00
model Add validation during domain creation for locked down TLDs 2017-03-21 15:42:23 -04:00
module Add mapreduce cleanup action 2017-03-13 10:24:57 -04:00
monitoring Add monitoring/metrics/contrib package to Nomulus release 2017-03-21 14:59:31 -04:00
pricing Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
rdap Remove the ofy().load() inside of HostResource.cloneProjectedAtTime 2017-03-13 11:22:55 -04:00
rde Remove obsolete TransferData.extendedRegistrationYears 2017-03-21 15:35:00 -04:00
request Add logging to OAuth authentication mechanism 2017-03-21 15:09:38 -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 Use Immutable types for static final fields 2017-03-07 13:55:13 -05:00
tools Add a Nomulus command to set domain create restricted status 2017-03-21 15:43:52 -04:00
ui Cut over to generating new HMAC-based XSRF tokens 2017-03-13 11:22:56 -04:00
util Rename .toString and .equals to be less confusing. 2017-03-21 15:06:44 -04:00
whois Remove the ofy().load() inside of HostResource.cloneProjectedAtTime 2017-03-13 11:22:55 -04:00
xjc Add mapper to import domains from RDE deposits 2017-02-06 16:46:46 -05:00
xml Replace Throwables.propagate and variants with Guava 20 versions 2017-02-02 17:01:23 -05:00
BUILD Move the environment configuration YAML files into the main JAR 2017-02-06 16:46:52 -05:00
repositories.bzl Revert upgrade to Bazel 0.4.4 2017-03-21 15:40:54 -04:00