You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by or...@apache.org on 2019/10/09 14:39:42 UTC

[qpid-broker-j] branch master updated: NO-JIRA: Fix failing test with Java11 and TLS 1.3

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

orudyy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/qpid-broker-j.git


The following commit(s) were added to refs/heads/master by this push:
     new 07db79a  NO-JIRA: Fix failing test with Java11 and TLS 1.3
07db79a is described below

commit 07db79a90e123486caf3b4e062c181d2a944040b
Author: Alex Rudyy <or...@apache.org>
AuthorDate: Wed Oct 9 15:20:05 2019 +0100

    NO-JIRA: Fix failing test with Java11 and TLS 1.3
---
 .../http/authentication/PreemptiveAuthenticationTest.java  | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/systests/qpid-systests-http-management/src/test/java/org/apache/qpid/tests/http/authentication/PreemptiveAuthenticationTest.java b/systests/qpid-systests-http-management/src/test/java/org/apache/qpid/tests/http/authentication/PreemptiveAuthenticationTest.java
index 8b73bc2..466e2da 100644
--- a/systests/qpid-systests-http-management/src/test/java/org/apache/qpid/tests/http/authentication/PreemptiveAuthenticationTest.java
+++ b/systests/qpid-systests-http-management/src/test/java/org/apache/qpid/tests/http/authentication/PreemptiveAuthenticationTest.java
@@ -54,6 +54,7 @@ import java.util.HashMap;
 import java.util.HashSet;
 import java.util.Map;
 
+import javax.net.ssl.SSLException;
 import javax.net.ssl.SSLHandshakeException;
 import javax.servlet.http.HttpServletResponse;
 
@@ -136,6 +137,19 @@ public class PreemptiveAuthenticationTest extends HttpTestBase
         {
             // PASS
         }
+        catch (SSLException e)
+        {
+            // PASS
+            //
+            // TLS 1.3 seems has an issue with handshake (some sort of race):
+            // after the socket being closed on server side due to unknown certificate,
+            // the client is trying to flush output stream and gets "broken pipe".
+            //
+            // The issue seems related to https://bugs.openjdk.java.net/browse/JDK-8207009
+            // There is still a problem with handshake in 11.0.4 and above
+            //
+            // Ignoring this issue... due to low impact of the issue on client applications...
+        }
         catch (SocketException e)
         {
             // TODO - defect - we are not always seeing the SSL handshake exception


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org