google-nomulus/javatests/google/registry
nickfelt e1c9395749 Simplify blocking of renews for domains in pending transfer
This tweaks the logic that prohibits domain renews during pending transfers to just use the regular verifyNoDisallowedStatuses() check instead of a special check on TransferData with a custom exception.  This is simpler and produces a better error message: we get "Operation disallowed by status: pendingTransfer" instead of "Object with given ID (foo.com) already has a pending transfer" (which is intended for use when denying a transfer request for an object already being transferred, not for this case).

For the record, we originally prohibited renews for domains in pending transfer because there's no good reason to do such a renew: b/12533793.  But in fact our transfer server-approve logic relies heavily on this behavior, because otherwise the domain's expiration time computed in cloneProjectedAtTime() will reflect the transfer year added to the post-renew expiration time, whereas all the transfer server approve entities (e.g. new autorenew billing event) will reflect the pre-renew expiration time at the moment the transfer was requested.  As such, it would be quite difficult to ever support a renew during pending transfer, since it would need to change many fields within the transfer server approve entities.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=150325501
2017-03-21 15:21:28 -04:00
..
backup Add @VirtualEntity checking to Ofy's deleteWithoutBackup() 2017-02-08 17:31:07 -05:00
batch Refactor main loop of MapreduceEntityCleanupAction 2017-03-13 10:38:21 -04:00
bigquery 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 Remove unnecessary line to load configs 2017-02-27 11:07:40 -05:00
cron Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
dns Refer to Datastore everywhere correctly by its capitalized form 2017-02-17 12:12:12 -05:00
export Add Cloud KMS based secret storage 2017-02-17 12:22:12 -05:00
flows Simplify blocking of renews for domains in pending transfer 2017-03-21 15:21:28 -04:00
groups Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
keyring/kms Fix bugs in KmsConnectionImpl 2017-03-07 13:25:51 -05:00
mapreduce/inputs Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
model Fix incorrect pluralization in reserved list metric name. 2017-03-21 15:12:35 -04:00
module Fix stale doPost references in servlet test method names 2017-02-27 11:15:01 -05: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 Refactor RdeKeyringModule into FakeKeyringModule 2017-03-21 14:53:25 -04:00
request Cut over to generating new HMAC-based XSRF tokens 2017-03-13 11:22:56 -04:00
security Cut over to generating new HMAC-based XSRF tokens 2017-03-13 11:22:56 -04:00
server Refer to Datastore everywhere correctly by its capitalized form 2017-02-17 12:12:12 -05:00
storage/drive Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
testing Refactor RdeKeyringModule into FakeKeyringModule 2017-03-21 14:53:25 -04: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:52:19 -05:00
tools Refactor RdeKeyringModule into FakeKeyringModule 2017-03-21 14:53:25 -04:00
ui Refactor a few new XsrfTokenManager methods 2017-03-07 13:24:21 -05: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 Update copyright year on all license headers 2017-02-02 16:27:22 -05:00