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

bonampak pushed a commit to branch feature/jakarta-jetty-upgrade
in repository https://gitbox.apache.org/repos/asf/knox.git

commit 2f09883ca7afb74b937d0e13f884b9c1c474b063
Author: bonampak <[email protected]>
AuthorDate: Tue Apr 28 21:52:21 2026 +0200

    KNOX-3238: fix testPutDescriptorWithValidEncodedName.
---
 .../java/org/apache/knox/gateway/GatewayAdminTopologyFuncTest.java    | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git 
a/gateway-test/src/test/java/org/apache/knox/gateway/GatewayAdminTopologyFuncTest.java
 
b/gateway-test/src/test/java/org/apache/knox/gateway/GatewayAdminTopologyFuncTest.java
index 608148713..02178e83f 100644
--- 
a/gateway-test/src/test/java/org/apache/knox/gateway/GatewayAdminTopologyFuncTest.java
+++ 
b/gateway-test/src/test/java/org/apache/knox/gateway/GatewayAdminTopologyFuncTest.java
@@ -1806,7 +1806,9 @@ public class GatewayAdminTopologyFuncTest {
     String newDescriptorJSON = createDescriptor(clusterName);
 
     // Attempt to PUT the descriptor
-    given().auth().preemptive().basic(username, password)
+    // Prevent RestAssured from double-encoding the already encoded path
+    // otherwise we would get a 400 response due to ambiguous URI path encoding
+    given().urlEncodingEnabled(false).auth().preemptive().basic(username, 
password)
            .header("Content-type", MediaType.APPLICATION_JSON)
            .body(newDescriptorJSON.getBytes(StandardCharsets.UTF_8.name()))
            .then()

Reply via email to