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

jamesnetherton pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git


The following commit(s) were added to refs/heads/main by this push:
     new da5f250ff8f Fixes #9529. Stabilize 
TlsRegistryMutualTlsTest.callWithoutClientCertificateIsRejected
da5f250ff8f is described below

commit da5f250ff8f48415e329afc1fe169fa7d5e6e4a9
Author: Jiří Ondrušek <[email protected]>
AuthorDate: Fri Nov 20 08:03:46 2026 +0100

    Fixes #9529. Stabilize 
TlsRegistryMutualTlsTest.callWithoutClientCertificateIsRejected
    
    With TLS 1.3 the client completes its handshake before the server rejects 
the
    missing client certificate, so camel-http may see Broken pipe / Connection 
reset
    instead of the certificate_required alert. Accept those as rejection too.
    
    Co-authored-by: jiriOndrusek-agent <[email protected]>
    Co-authored-by: Claude Opus 5.5 <[email protected]>
---
 .../apache/camel/quarkus/core/tls/it/TlsRegistryMutualTlsTest.java | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git 
a/integration-tests/tls-registry/src/test/java/org/apache/camel/quarkus/core/tls/it/TlsRegistryMutualTlsTest.java
 
b/integration-tests/tls-registry/src/test/java/org/apache/camel/quarkus/core/tls/it/TlsRegistryMutualTlsTest.java
index b6bd165083f..76c4977fc1a 100644
--- 
a/integration-tests/tls-registry/src/test/java/org/apache/camel/quarkus/core/tls/it/TlsRegistryMutualTlsTest.java
+++ 
b/integration-tests/tls-registry/src/test/java/org/apache/camel/quarkus/core/tls/it/TlsRegistryMutualTlsTest.java
@@ -80,10 +80,13 @@ class TlsRegistryMutualTlsTest {
                 .get("/tls-registry/mtls/" + component + "/client-no-key")
                 .then()
                 .statusCode(500)
-                // On Windows the rejection can surface as an aborted 
connection rather than the TLS alert
+                // With TLS 1.3 the client finishes its handshake before the 
server rejects it, so a client already
+                // writing the request may see the closed socket instead of 
the TLS alert
                 .body(anyOf(
                         containsString("javax.net.ssl.SSLHandshakeException: 
(certificate_required)"),
-                        containsString("java.net.SocketException: An 
established connection was aborted")));
+                        containsString("java.net.SocketException: An 
established connection was aborted"),
+                        containsString("java.net.SocketException: Broken 
pipe"),
+                        containsString("java.net.SocketException: Connection 
reset")));
     }
 
     public static class MutualTlsProfile implements QuarkusTestProfile {

Reply via email to