1
0
mirror of https://github.com/google/nomulus synced 2026-05-24 00:31:54 +00:00

Compare commits

...

2 Commits

Author SHA1 Message Date
gbrodman
04c6652793 Fix minor RDAP typos (#2062)
See https://buganizer.corp.google.com/issues/252317192 for more info,
these are just the low-hanging fruit (removing a www and fixing a typo
in a status)
2023-06-30 12:24:39 -04:00
Lai Jiang
5658fbe8bd Remove stale references to App Engine in CloudTasksUtils (#2064)
<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/google/nomulus/2064)
<!-- Reviewable:end -->
2023-06-29 16:48:44 -04:00
13 changed files with 26 additions and 40 deletions

View File

@@ -92,10 +92,7 @@ public class CloudTasksUtils implements Serializable {
return retrier.callWithRetry(
() -> {
logger.atInfo().log(
"Enqueuing queue='%s' endpoint='%s' service='%s'",
queue,
task.getAppEngineHttpRequest().getRelativeUri(),
task.getAppEngineHttpRequest().getAppEngineRouting().getService());
"Enqueuing queue='%s' endpoint='%s'", queue, task.getHttpRequest().getUrl());
return client.enqueue(projectId, locationId, queue, task);
},
ApiException.class);
@@ -159,10 +156,7 @@ public class CloudTasksUtils implements Serializable {
*
* @param path the relative URI (staring with a slash and ending without one).
* @param method the HTTP method to be used for the request, only GET and POST are supported.
* @param service the App Engine service to route the request to. Note that with App Engine Task
* Queue API if no service is specified, the service which enqueues the task will be used to
* process the task. Cloud Tasks API does not support this feature so the service will always
* needs to be explicitly specified.
* @param service the App Engine service to route the request to.
* @param params a multimap of URL query parameters. Duplicate keys are saved as is, and it is up
* to the server to process the duplicate keys.
* @return the enqueued task.
@@ -198,10 +192,7 @@ public class CloudTasksUtils implements Serializable {
*
* @param path the relative URI (staring with a slash and ending without one).
* @param method the HTTP method to be used for the request, only GET and POST are supported.
* @param service the App Engine service to route the request to. Note that with App Engine Task
* Queue API if no service is specified, the service which enqueues the task will be used to
* process the task. Cloud Tasks API does not support this feature so the service will always
* needs to be explicitly specified.
* @param service the App Engine service to route the request to.
* @param params a multimap of URL query parameters. Duplicate keys are saved as is, and it is up
* to the server to process the duplicate keys.
* @param jitterSeconds the number of seconds that a task is randomly delayed up to.
@@ -232,10 +223,7 @@ public class CloudTasksUtils implements Serializable {
*
* @param path the relative URI (staring with a slash and ending without one).
* @param method the HTTP method to be used for the request, only GET and POST are supported.
* @param service the App Engine service to route the request to. Note that with App Engine Task
* Queue API if no service is specified, the service which enqueues the task will be used to
* process the task. Cloud Tasks API does not support this feature so the service will always
* needs to be explicitly specified.
* @param service the App Engine service to route the request to.
* @param params a multimap of URL query parameters. Duplicate keys are saved as is, and it is up
* to the server to process the duplicate keys.
* @param delay the amount of time that a task needs to delayed for.

View File

@@ -367,7 +367,7 @@ final class RdapDataStructures {
PENDING_RESTORE("pending restore"),
REDEMPTION_PERIOD("redemption period"),
RENEW_PERIOD("renew period"),
SERVER_DELETE_PROHIBITED("server deleted prohibited"),
SERVER_DELETE_PROHIBITED("server delete prohibited"),
SERVER_RENEW_PROHIBITED("server renew prohibited"),
SERVER_TRANSFER_PROHIBITED("server transfer prohibited"),
SERVER_UPDATE_PROHIBITED("server update prohibited"),

View File

@@ -54,12 +54,11 @@ public class RdapIcannStandardInformation {
private static final Notice INACCURACY_COMPLAINT_FORM_NOTICE =
Notice.builder()
.setTitle("RDDS Inaccuracy Complaint Form")
.setDescription(
"URL of the ICANN RDDS Inaccuracy Complaint Form: https://www.icann.org/wicf")
.setDescription("URL of the ICANN RDDS Inaccuracy Complaint Form: https://icann.org/wicf")
.addLink(
Link.builder()
.setRel("alternate")
.setHref("https://www.icann.org/wicf")
.setHref("https://icann.org/wicf")
.setType("text/html")
.build())
.build();

View File

@@ -1000,7 +1000,7 @@ public class RdapJsonFormatter {
// Gustavo Lozano of ICANN, the one we should use is an embedded array of street address lines
// if there is more than one line:
//
// RFC7095 provides two examples of structured addresses, and one of the examples shows a
// RFC 7095 provides two examples of structured addresses, and one of the examples shows a
// street JSON element that contains several data elements. The example showing (see below)
// several data elements is the expected output when two or more <contact:street> elements
// exists in the contact object.

View File

@@ -139,13 +139,12 @@ class RdapTestHelper {
"RDDS Inaccuracy Complaint Form",
"description",
ImmutableList.of(
"URL of the ICANN RDDS Inaccuracy Complaint Form:"
+ " https://www.icann.org/wicf"),
"URL of the ICANN RDDS Inaccuracy Complaint Form: https://icann.org/wicf"),
"links",
ImmutableList.of(
ImmutableMap.of(
"rel", "alternate",
"href", "https://www.icann.org/wicf",
"href", "https://icann.org/wicf",
"type", "text/html")))));
}

View File

@@ -156,12 +156,12 @@
},
{
"title": "RDDS Inaccuracy Complaint Form",
"description" : ["URL of the ICANN RDDS Inaccuracy Complaint Form: https://www.icann.org/wicf"],
"description" : ["URL of the ICANN RDDS Inaccuracy Complaint Form: https://icann.org/wicf"],
"links" :
[
{
"rel" : "alternate",
"href" : "https://www.icann.org/wicf",
"href" : "https://icann.org/wicf",
"type" : "text/html"
}
]

View File

@@ -137,12 +137,12 @@
},
{
"title": "RDDS Inaccuracy Complaint Form",
"description" : ["URL of the ICANN RDDS Inaccuracy Complaint Form: https://www.icann.org/wicf"],
"description" : ["URL of the ICANN RDDS Inaccuracy Complaint Form: https://icann.org/wicf"],
"links" :
[
{
"rel" : "alternate",
"href" : "https://www.icann.org/wicf",
"href" : "https://icann.org/wicf",
"type" : "text/html"
}
]

View File

@@ -157,12 +157,12 @@
},
{
"title": "RDDS Inaccuracy Complaint Form",
"description" : ["URL of the ICANN RDDS Inaccuracy Complaint Form: https://www.icann.org/wicf"],
"description" : ["URL of the ICANN RDDS Inaccuracy Complaint Form: https://icann.org/wicf"],
"links" :
[
{
"rel" : "alternate",
"href" : "https://www.icann.org/wicf",
"href" : "https://icann.org/wicf",
"type" : "text/html"
}
]

View File

@@ -95,12 +95,12 @@
},
{
"title": "RDDS Inaccuracy Complaint Form",
"description": ["URL of the ICANN RDDS Inaccuracy Complaint Form: https://www.icann.org/wicf"],
"description": ["URL of the ICANN RDDS Inaccuracy Complaint Form: https://icann.org/wicf"],
"links":
[
{
"rel": "alternate",
"href": "https://www.icann.org/wicf",
"href": "https://icann.org/wicf",
"type": "text/html"
}
]

View File

@@ -130,12 +130,12 @@
},
{
"title": "RDDS Inaccuracy Complaint Form",
"description": ["URL of the ICANN RDDS Inaccuracy Complaint Form: https://www.icann.org/wicf"],
"description": ["URL of the ICANN RDDS Inaccuracy Complaint Form: https://icann.org/wicf"],
"links":
[
{
"rel":"alternate",
"href":"https://www.icann.org/wicf",
"href":"https://icann.org/wicf",
"type":"text/html"
}
]

View File

@@ -98,12 +98,12 @@
},
{
"title": "RDDS Inaccuracy Complaint Form",
"description":["URL of the ICANN RDDS Inaccuracy Complaint Form: https://www.icann.org/wicf"],
"description":["URL of the ICANN RDDS Inaccuracy Complaint Form: https://icann.org/wicf"],
"links":[
{
"type":"text/html",
"rel":"alternate",
"href":"https://www.icann.org/wicf"
"href":"https://icann.org/wicf"
}
]
}

View File

@@ -144,12 +144,12 @@
},
{
"title": "RDDS Inaccuracy Complaint Form",
"description" : ["URL of the ICANN RDDS Inaccuracy Complaint Form: https://www.icann.org/wicf"],
"description" : ["URL of the ICANN RDDS Inaccuracy Complaint Form: https://icann.org/wicf"],
"links" :
[
{
"rel" : "alternate",
"href" : "https://www.icann.org/wicf",
"href" : "https://icann.org/wicf",
"type" : "text/html"
}
]

View File

@@ -59,12 +59,12 @@
},
{
"title": "RDDS Inaccuracy Complaint Form",
"description": ["URL of the ICANN RDDS Inaccuracy Complaint Form: https://www.icann.org/wicf"],
"description": ["URL of the ICANN RDDS Inaccuracy Complaint Form: https://icann.org/wicf"],
"links":
[
{
"rel": "alternate",
"href": "https://www.icann.org/wicf",
"href": "https://icann.org/wicf",
"type": "text/html"
}
]