Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
IBM JDK fails for o.a.c.a.SslDriverTest after update to Jetty 9.4.
[1;31mERROR[m] testReadWrite[0](org.apache.calcite.avatica.SslDriverTest) Time elapsed: 0.082 s <<< ERROR! java.lang.RuntimeException: javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure at org.apache.calcite.avatica.SslDriverTest.testReadWrite(SslDriverTest.java:137) Caused by: javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure at org.apache.calcite.avatica.SslDriverTest.testReadWrite(SslDriverTest.java:137) [[1;31mERROR[m] testReadWrite[1](org.apache.calcite.avatica.SslDriverTest) Time elapsed: 0.037 s <<< ERROR! java.lang.RuntimeException: javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure at org.apache.calcite.avatica.SslDriverTest.testReadWrite(SslDriverTest.java:137) Caused by: javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure at org.apache.calcite.avatica.SslDriverTest.testReadWrite(SslDriverTest.java:137)
This seems to be a difference between IBM JDK and Oracle/OpenJDK related to SSL_ vs TLS_ prefixes for ciphers. The fix for this is to force IBM JDK to honor the Oracle/OpenJDK prefixes.
- https://www.ibm.com/developerworks/community/forums/html/topic?id=d34413d1-fc6d-4ea1-9e7b-4e331b591aa9&ps=50
- https://www.ibm.com/support/knowledgecenter/en/SSYKE2_8.0.0/com.ibm.java.security.component.80.doc/security-component/jsse2Docs/matchsslcontext_tls.html
The Java property to add is:
-Dcom.ibm.jsse2.overrideDefaultTLS=true
Oracle/OpenJDK ignores the Java property so we can add the property to .travis.yml to get the tests to pass.
Attachments
Issue Links
- relates to
-
CALCITE-2467 Upgrade owasp-dependency-check maven plugin to 3.3.1
- Closed
- links to