JDK-8298869 : Update ConnectionTest.java for changes to TLS implementation
  • Type: Bug
  • Component: security-libs
  • Sub-Component: javax.net.ssl
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2022-12-15
  • Updated: 2024-08-29
  • Resolved: 2023-01-26
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 11 JDK 17 JDK 21
11.0.25-oracleFixed 17.0.10-oracleFixed 21 b08Fixed
Related Reports
Relates :  
Description
This test fails due to changes in the underlying implementation. Verify the test is still valid and update accordingly.

Doing close
===========
LAST UNWRAP
unwrap1 = Status = BUFFER_UNDERFLOW HandshakeStatus = NEED_WRAP
bytesConsumed = 0 bytesProduced = 0
unwrap2 = Status = BUFFER_UNDERFLOW HandshakeStatus = NEED_WRAP
bytesConsumed = 0 bytesProduced = 0
LAST WRAP
----------System.err:(13/826)----------
java.lang.Exception: Unexpected hsStatus: need = NEED_UNWRAP got = NOT_HANDSHAKING
	at ConnectionTest.checkResult(ConnectionTest.java:154)
	at ConnectionTest.test(ConnectionTest.java:551)
	at ConnectionTest.main(ConnectionTest.java:682)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
	at java.base/java.lang.reflect.Method.invoke(Method.java:578)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:125)
	at java.base/java.lang.Thread.run(Thread.java:1623)

JavaTest Message: Test threw exception: java.lang.Exception: Unexpected hsStatus: need = NEED_UNWRAP got = NOT_HANDSHAKING
JavaTest Message: shutting down test
Comments
Fix request [17u] I backport this for parity with 17.0.10-oracle. No risk, only a test change. Clean backport. Test passes.SAP nightly testing passed.
29-09-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk17u-dev/pull/1815 Date: 2023-09-28 12:54:12 +0000
28-09-2023

Changeset: d6007a35 Author: Matthew Donovan <matthew.p.donovan@oracle.com> Committer: Rajan Halade <rhalade@openjdk.org> Date: 2023-01-26 21:36:36 +0000 URL: https://git.openjdk.org/jdk/commit/d6007a356f8081290cc745481af160a4cad8a9bb
26-01-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/11871 Date: 2023-01-05 21:55:42 +0000
06-01-2023