RFR: 8369995: Implement extra logging and/or propagate errors in X509KeyManagerImpl and fix StringIndexOutOfBoundsException [v8]
Mikhail Yankelevich
myankelevich at openjdk.org
Tue Oct 21 21:26:36 UTC 2025
> In [JDK-8309667](https://bugs.openjdk.org/browse/JDK-8309667), there were issues with debugging due to no logging or throwing of errors by X509KeyManagerImpl::getEntry. [Line](https://github.com/openjdk/jdk/blob/6a4c2676a6378f573bd58d1bc32b57765d756291/src/java.base/share/classes/sun/security/ssl/X509KeyManagerImpl.java#L243-L245)
>
> Extra logging and error propagating should be implemented for the X509KeyManagerImpl.
>
> Additionally, dot checking logic has been changed, so no cases similar to `.A` will not trigger StringOutOfBounds exceptions.
>
> Thank you @djelinski for finding the issue and analysis.
Mikhail Yankelevich has updated the pull request incrementally with one additional commit since the last revision:
removed log check and renamed logs from keymanager to ssl,keymanager
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/27851/files
- new: https://git.openjdk.org/jdk/pull/27851/files/b62fc9aa..a624b17a
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=27851&range=07
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=27851&range=06-07
Stats: 68 lines in 2 files changed: 5 ins; 42 del; 21 mod
Patch: https://git.openjdk.org/jdk/pull/27851.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/27851/head:pull/27851
PR: https://git.openjdk.org/jdk/pull/27851
More information about the security-dev
mailing list