JDK-8313206 : PKCS11 tests silently skip execution
  • Type: Bug
  • Component: security-libs
  • Sub-Component: java.security
  • Affected Version: 17,21,22
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2023-07-26
  • Updated: 2025-09-09
  • Resolved: 2023-08-08
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 JDK 22 JDK 8
11.0.24Fixed 17.0.11-oracleFixed 21.0.2Fixed 22 b10Fixed 8u481Fixed
Related Reports
Relates :  
Relates :  
Description
open/test/jdk/sun/security/pkcs11 look for NSS library for platform and skip execution if library is not found. These tests should be enhanced to throw JTReg SkippedException in such cases so we can have better insigts.
Comments
Fix request [11u] I backport this for parity with 11.0.24-oracle. No risk, only tests change. test/jdk/sun/security/pkcs11/PKCS11Test.java some added code lines are different, and add the format change in 'fetchNssLib'. Test pass. SAP nightly testing passed.
25-03-2024

A pull request was submitted for review. URL: https://git.openjdk.org/jdk11u-dev/pull/2605 Date: 2024-03-18 05:43:16 +0000
18-03-2024

Fix request [17u] I backport this for parity with 17.0.11-oracle. No risk, only a test change. Trivial resolves needed Tests pass, also ran all pkcs11. SAP nightly testing passed.
22-01-2024

A pull request was submitted for review. URL: https://git.openjdk.org/jdk17u-dev/pull/2143 Date: 2024-01-19 09:26:31 +0000
19-01-2024

jdk21u backport request I would like to have the patch in jdk21u as well, because the issue is present there too. The backport is low risk and clean.
20-09-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk21u/pull/177 Date: 2023-09-20 08:11:11 +0000
20-09-2023

Changeset: 515add88 Author: Rajan Halade <rhalade@openjdk.org> Date: 2023-08-08 20:21:16 +0000 URL: https://git.openjdk.org/jdk/commit/515add88ed6c290ee90f3d6f522a22971e37a62c
08-08-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/15125 Date: 2023-08-02 17:51:31 +0000
02-08-2023