This is an automated email from the ASF dual-hosted git repository.

btellier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/james-project.git


The following commit(s) were added to refs/heads/master by this push:
     new 9c1876d8ad JAMES-3893 Enable URL encoding where needed (#2545)
9c1876d8ad is described below

commit 9c1876d8ad51d51364fec3ecc5a1089b4af1ec2b
Author: Benoit TELLIER <btell...@linagora.com>
AuthorDate: Wed Dec 4 06:29:26 2024 +0100

    JAMES-3893 Enable URL encoding where needed (#2545)
---
 .../james/webadmin/integration/WebAdminServerIntegrationTest.java      | 3 +++
 1 file changed, 3 insertions(+)

diff --git 
a/server/protocols/webadmin-integration-test/webadmin-integration-test-common/src/main/java/org/apache/james/webadmin/integration/WebAdminServerIntegrationTest.java
 
b/server/protocols/webadmin-integration-test/webadmin-integration-test-common/src/main/java/org/apache/james/webadmin/integration/WebAdminServerIntegrationTest.java
index d0349e2142..2e1531470b 100644
--- 
a/server/protocols/webadmin-integration-test/webadmin-integration-test-common/src/main/java/org/apache/james/webadmin/integration/WebAdminServerIntegrationTest.java
+++ 
b/server/protocols/webadmin-integration-test/webadmin-integration-test-common/src/main/java/org/apache/james/webadmin/integration/WebAdminServerIntegrationTest.java
@@ -329,6 +329,7 @@ public abstract class WebAdminServerIntegrationTest {
     @Test
     void getIdentitiesOfInvalidUserShouldReturnBadRequest() {
         given()
+            .urlEncodingEnabled(true)
             .get(String.format("/users/%s/identities?default=true", "John 
Doe"))
         .then()
             .statusCode(HttpStatus.BAD_REQUEST_400);
@@ -337,6 +338,7 @@ public abstract class WebAdminServerIntegrationTest {
     @Test
     void createIdentitiesForInvalidUserShouldReturnBadRequest() {
         given()
+            .urlEncodingEnabled(true)
             .body("{\n" +
                 "  \"name\": \"create name 1\",\n" +
                 "  \"email\": \"b...@domain.tld\",\n" +
@@ -364,6 +366,7 @@ public abstract class WebAdminServerIntegrationTest {
     @Test
     void updateIdentitiesForInvalidUserShouldReturnBadRequest() {
         given()
+            .urlEncodingEnabled(true)
             .body("{\n" +
                 "  \"name\": \"create name 1\",\n" +
                 "  \"email\": \"b...@domain.tld\",\n" +


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@james.apache.org
For additional commands, e-mail: notifications-h...@james.apache.org

Reply via email to