From ecfa161da8588cf4faf39c6365c0c84699e98e09 Mon Sep 17 00:00:00 2001 From: Ehren Kret Date: Fri, 17 Jun 2022 14:32:38 -0500 Subject: [PATCH] Validate the request --- .../textsecuregcm/controllers/ProfileController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/src/main/java/org/whispersystems/textsecuregcm/controllers/ProfileController.java b/service/src/main/java/org/whispersystems/textsecuregcm/controllers/ProfileController.java index 9d15f26f8..ef4115d1b 100644 --- a/service/src/main/java/org/whispersystems/textsecuregcm/controllers/ProfileController.java +++ b/service/src/main/java/org/whispersystems/textsecuregcm/controllers/ProfileController.java @@ -328,7 +328,7 @@ public class ProfileController { @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) @Path("/identity_check/batch") - public CompletableFuture runBatchIdentityCheck(BatchIdentityCheckRequest request) { + public CompletableFuture runBatchIdentityCheck(@NotNull @Valid BatchIdentityCheckRequest request) { return CompletableFuture.supplyAsync(() -> { List responseElements = Collections.synchronizedList(new ArrayList<>()); BatchIdentityCheckResponse response = new BatchIdentityCheckResponse(responseElements);