JDK-8324841 : PKCS11 tests still skip execution
  • Type: Bug
  • Component: security-libs
  • Sub-Component: java.security
  • Affected Version: 23
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2024-01-29
  • Updated: 2024-10-11
  • Resolved: 2024-06-24
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 23 JDK 24
11.0.26-oracleFixed 17.0.14-oracleFixed 21.0.6-oracleFixed 23Fixed 24 b04Fixed
Related Reports
Relates :  
Relates :  
Description
Since JDK-8313206, the PKCS11 tests throw SkipException if they can't find NSS library. This is fine in the default case where no NSS library was provided. However, in cases where we expect the library to be found (like when using JIB or when path to NSS is explicitly specified on the command line via -Djdk.test.lib.artifacts.nsslib-linux_x64), failure to find NSS should be treated as an error.

Additionally, the test framework adds nss/lib suffix to the provided jdk.test.lib.artifacts.nsslib-linux_x64 parameter; this is unexpected, and makes testing with platform libnss3 harder than necessary.

(Also, since JDK-8295343 the test does not work with system NSS libraries on Ubuntu 20.04/22.04. On these systems the library was located in /usr/lib/x86_64-linux-gnu/nss/, which was removed from the search path. But that might be a separate issue.)
Comments
Fix request [17u,21u] I backport this for parity with 17.0.14-oracle,21.0.6-oracle. No risk, only a test change. Clean backport. Pkcs tests pass. SAP nightly testing passed.
27-09-2024

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk21u-dev/pull/1011 Date: 2024-09-26 07:06:24 +0000
26-09-2024

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk17u-dev/pull/2919 Date: 2024-09-26 07:07:05 +0000
26-09-2024

A pull request was submitted for review. Branch: jdk23 URL: https://git.openjdk.org/jdk/pull/19857 Date: 2024-06-24 12:31:20 +0000
09-07-2024

Changeset: 9d4a4bd2 Author: Matthew Donovan <mdonovan@openjdk.org> Date: 2024-06-24 11:15:33 +0000 URL: https://git.openjdk.org/jdk/commit/9d4a4bd2c2a4bd16bbc80b602b15b448c52220f6
24-06-2024

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/19767 Date: 2024-06-18 12:13:13 +0000
18-06-2024