diff --git a/java/google/registry/export/ExportDomainListsAction.java b/java/google/registry/export/ExportDomainListsAction.java index 89830addb..d772f07d2 100644 --- a/java/google/registry/export/ExportDomainListsAction.java +++ b/java/google/registry/export/ExportDomainListsAction.java @@ -18,6 +18,7 @@ import static com.google.appengine.tools.cloudstorage.GcsServiceFactory.createGc import static google.registry.mapreduce.inputs.EppResourceInputs.createEntityInput; import static google.registry.model.EppResourceUtils.isActive; import static google.registry.model.registry.Registries.getTldsOfType; +import static google.registry.request.Action.Method.POST; import static google.registry.util.PipelineUtils.createJobPath; import static java.nio.charset.StandardCharsets.UTF_8; import static org.joda.time.DateTimeZone.UTC; @@ -51,7 +52,7 @@ import org.joda.time.DateTime; * Each TLD's active domain names are exported as a newline-delimited flat text file with the name * TLD.txt into the domain-lists bucket. Note that this overwrites the files in place. */ -@Action(path = "/_dr/task/exportDomainLists") +@Action(path = "/_dr/task/exportDomainLists", method = POST) public class ExportDomainListsAction implements Runnable { private static final FormattingLogger logger = FormattingLogger.getLoggerForCallerClass(); diff --git a/java/google/registry/monitoring/whitebox/VerifyEntityIntegrityAction.java b/java/google/registry/monitoring/whitebox/VerifyEntityIntegrityAction.java index b46b9cce9..428ca9b47 100644 --- a/java/google/registry/monitoring/whitebox/VerifyEntityIntegrityAction.java +++ b/java/google/registry/monitoring/whitebox/VerifyEntityIntegrityAction.java @@ -19,6 +19,7 @@ import static com.google.common.collect.Iterables.getOnlyElement; import static com.googlecode.objectify.Key.getKind; import static google.registry.model.EppResourceUtils.isActive; import static google.registry.model.ofy.ObjectifyService.ofy; +import static google.registry.request.Action.Method.POST; import static google.registry.util.DateTimeUtils.END_OF_TIME; import static google.registry.util.DateTimeUtils.START_OF_TIME; import static google.registry.util.DateTimeUtils.earliestOf; @@ -87,7 +88,7 @@ import org.joda.time.DateTime; * fullyQualifiedDomainName. * */ -@Action(path = "/_dr/task/verifyEntityIntegrity") +@Action(path = "/_dr/task/verifyEntityIntegrity", method = POST) public class VerifyEntityIntegrityAction implements Runnable { private static final FormattingLogger logger = getLoggerForCallerClass(); diff --git a/java/google/registry/tools/server/DeleteProberDataAction.java b/java/google/registry/tools/server/DeleteProberDataAction.java index e5c1bff0b..8767c0e2f 100644 --- a/java/google/registry/tools/server/DeleteProberDataAction.java +++ b/java/google/registry/tools/server/DeleteProberDataAction.java @@ -18,6 +18,7 @@ import static com.google.common.base.Verify.verifyNotNull; import static google.registry.mapreduce.MapreduceRunner.PARAM_DRY_RUN; import static google.registry.model.ofy.ObjectifyService.ofy; import static google.registry.model.registry.Registries.getTldsOfType; +import static google.registry.request.Action.Method.POST; import com.google.appengine.tools.mapreduce.Mapper; import com.google.common.base.Function; @@ -52,7 +53,7 @@ import javax.inject.Inject; * *
See: https://www.youtube.com/watch?v=xuuv0syoHnM */ -@Action(path = "/_dr/task/deleteProberData") +@Action(path = "/_dr/task/deleteProberData", method = POST) public class DeleteProberDataAction implements Runnable { private static final FormattingLogger logger = FormattingLogger.getLoggerForCallerClass();