JDK-8253932 : SSL debug log prints incorrect caller info
  • Type: Bug
  • Component: security-libs
  • Sub-Component: javax.net.ssl
  • Affected Version: openjdk8u272
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2020-10-02
  • Updated: 2021-02-02
  • Resolved: 2020-12-09
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.
Other
openjdk8u292 b01Fixed
Related Reports
Relates :  
Description
SSL debug log, enabled by "-Djavax.net.debug=ssl" option, prints incorrect Caller info:
"Logger.java:765" instead of the actual source of the log message

Actual output:

javax.net.ssl|FINE|01|main|2020-10-02 05:44:19.539 PDT|Logger.java:765|jdk.tls.keyLimits:  entry = AES/GCM/NoPadding KeyUpdate 2^37. AES/GCM/NOPADDING:KEYUPDATE = 137438953472

Expected output:

javax.net.ssl|FINE|01|main|2020-10-02 05:55:36.576 PDT|SSLCipher.java:438|jdk.tls.keyLimits: entry = AES/GCM/NoPadding KeyUpdate 2^37. AES/GCM/NOPADDING:KEYUPDATE = 137438953472

How to reproduce:
Run simple Https client with "-Djavax.net.debug=ssl" option
Comments
URL: https://hg.openjdk.java.net/jdk8u/jdk8u/jdk/rev/3ad72295b457 User: andrew Date: 2021-02-02 05:23:57 +0000
02-02-2021

URL: https://hg.openjdk.java.net/jdk8u/jdk8u-dev/jdk/rev/3ad72295b457 User: abakhtin Date: 2020-12-09 14:31:08 +0000
09-12-2020

Review: https://mail.openjdk.java.net/pipermail/jdk8u-dev/2020-October/012884.html
16-11-2020

Fix request (8u) I'd like to have this fix in 8u. This fix is required to print correct caller info in SSL debug log. Review: https://mail.openjdk.java.net/pipermail/jdk8u-dev/2020-October/012884.html
30-10-2020

Link to the review thread : https://mail.openjdk.java.net/pipermail/jdk8u-dev/2020-October/012753.html Patch: https://cr.openjdk.java.net/~abakhtin/8253932/webrev.v0/
02-10-2020