mirror of
https://github.com/google/nomulus
synced 2026-02-04 12:02:30 +00:00
Don't add all claims data to NORDN verify task
This claims data can exceed the maximum size of a task, causing the NORDN upload to error out. It also wasn't even being used anyway. This data is already logged during the upload and there's no reason to log it as well during the verify, because there is already a unique actionLogId that can be used to tie the verify task back to the upload task. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=196521160
This commit is contained in:
@@ -153,17 +153,15 @@ public final class NordnUploadAction implements Runnable {
|
||||
actionLogId),
|
||||
req, rsp);
|
||||
}
|
||||
getQueue(NordnVerifyAction.QUEUE).add(makeVerifyTask(new URL(location.get()), csvData));
|
||||
getQueue(NordnVerifyAction.QUEUE).add(makeVerifyTask(new URL(location.get())));
|
||||
}
|
||||
|
||||
private TaskOptions makeVerifyTask(URL url, String csvData) {
|
||||
// This task doesn't technically need csvData. The only reason it's passed along is in case the
|
||||
// upload is rejected, in which case csvData will be logged so that it may be uploaded manually.
|
||||
private TaskOptions makeVerifyTask(URL url) {
|
||||
// The actionLogId is used to uniquely associate the verify task back to the upload task.
|
||||
return withUrl(NordnVerifyAction.PATH)
|
||||
.header(NordnVerifyAction.URL_HEADER, url.toString())
|
||||
.header(NordnVerifyAction.HEADER_ACTION_LOG_ID, actionLogId)
|
||||
.param(RequestParameters.PARAM_TLD, tld)
|
||||
.param(NordnVerifyAction.PARAM_CSV_DATA, csvData)
|
||||
.countdownMillis(VERIFY_DELAY.getMillis());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user