From 3745a0b81d3a119569fb0a98f36fbf1a48ca3116 Mon Sep 17 00:00:00 2001 From: Ehren Kret Date: Fri, 26 Mar 2021 16:14:08 -0500 Subject: [PATCH] Update from 684 to 776 for payment address length to account for signature --- .../textsecuregcm/entities/CreateProfileRequest.java | 2 +- .../tests/controllers/ProfileControllerTest.java | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/service/src/main/java/org/whispersystems/textsecuregcm/entities/CreateProfileRequest.java b/service/src/main/java/org/whispersystems/textsecuregcm/entities/CreateProfileRequest.java index fa0982c8d..f648891ae 100644 --- a/service/src/main/java/org/whispersystems/textsecuregcm/entities/CreateProfileRequest.java +++ b/service/src/main/java/org/whispersystems/textsecuregcm/entities/CreateProfileRequest.java @@ -36,7 +36,7 @@ public class CreateProfileRequest { private String about; @JsonProperty - @ExactlySize({0, 684}) + @ExactlySize({0, 776}) private String paymentAddress; @JsonProperty diff --git a/service/src/test/java/org/whispersystems/textsecuregcm/tests/controllers/ProfileControllerTest.java b/service/src/test/java/org/whispersystems/textsecuregcm/tests/controllers/ProfileControllerTest.java index f68a0ae6e..1ce9a5f13 100644 --- a/service/src/test/java/org/whispersystems/textsecuregcm/tests/controllers/ProfileControllerTest.java +++ b/service/src/test/java/org/whispersystems/textsecuregcm/tests/controllers/ProfileControllerTest.java @@ -485,7 +485,7 @@ public class ProfileControllerTest { clearInvocations(AuthHelper.VALID_ACCOUNT_TWO); final String name = RandomStringUtils.randomAlphabetic(380); - final String paymentAddress = RandomStringUtils.randomAlphanumeric(684); + final String paymentAddress = RandomStringUtils.randomAlphanumeric(776); Response response = resources.getJerseyTest() .target("/v1/profile") @@ -523,7 +523,7 @@ public class ProfileControllerTest { clearInvocations(AuthHelper.VALID_ACCOUNT_TWO); final String name = RandomStringUtils.randomAlphabetic(380); - final String paymentAddress = RandomStringUtils.randomAlphanumeric(684); + final String paymentAddress = RandomStringUtils.randomAlphanumeric(776); Response response = resources.getJerseyTest() .target("/v1/profile") @@ -572,7 +572,7 @@ public class ProfileControllerTest { clearInvocations(AuthHelper.VALID_ACCOUNT_TWO); final String name = RandomStringUtils.randomAlphabetic(380); - final String paymentAddress = RandomStringUtils.randomAlphanumeric(684); + final String paymentAddress = RandomStringUtils.randomAlphanumeric(776); Response response = resources.getJerseyTest() .target("/v1/profile")