JDK-8325096 : Test java/security/cert/CertPathBuilder/akiExt/AKISerialNumber.java is failing
  • Type: Bug
  • Component: security-libs
  • Sub-Component: java.security
  • Affected Version: 23
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2024-02-01
  • Updated: 2024-07-03
  • Resolved: 2024-02-01
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 23 JDK 8 Other
11.0.23-oracleFixed 17.0.11-oracleFixed 21.0.3-oracleFixed 22Fixed 23 b09Fixed 8u401Fixed openjdk8u422Fixed
Related Reports
Relates :  
Description
sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
	at java.base/sun.security.provider.certpath.SunCertPathBuilder.build(SunCertPathBuilder.java:148)
	at java.base/sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:129)
	at java.base/java.security.cert.CertPathBuilder.build(CertPathBuilder.java:297)
	at AKISerialNumber.main(AKISerialNumber.java:131)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
	at java.base/java.lang.reflect.Method.invoke(Method.java:580)
	at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:333)
	at java.base/java.lang.Thread.run(Thread.java:1575)
Comments
[jdk8u-fix-request] Approval Request from sendaoYan "This PR only change the testcase, the testcase change has been verified. Please review this PR."
06-03-2024

A pull request was submitted for review. URL: https://git.openjdk.org/jdk11u-dev/pull/2509 Date: 2024-02-06 13:21:53 +0000
06-02-2024

[jdk11u-fix-request] Approval Request from Aleksey Shipilëv Clean backport to fix the test. Affected test fails without the patch, passes with it. Risk is low, as it is a test-only fix.
06-02-2024

A pull request was submitted for review. URL: https://git.openjdk.org/jdk17u-dev/pull/2195 Date: 2024-02-06 10:12:17 +0000
06-02-2024

A pull request was submitted for review. URL: https://git.openjdk.org/jdk21u-dev/pull/236 Date: 2024-02-06 10:08:28 +0000
06-02-2024

[jdk17u-fix-request] Approval Request from Aleksey Shipilëv Clean backport to fix the test. Affected test fails without the patch, passes with it. Risk is low, as it is a test-only fix.
06-02-2024

[jdk21u-fix-request] Approval Request from Aleksey Shipilëv Clean backport to fix the test. Affected test fails without the patch, passes with it. Risk is low, as it is a test-only fix.
06-02-2024

A pull request was submitted for review. URL: https://git.openjdk.org/jdk8u-dev/pull/436 Date: 2024-02-01 15:08:08 +0000
04-02-2024

The fix for this bug is integrated in jdk-23+8-566.
01-02-2024

A pull request was submitted for review. URL: https://git.openjdk.org/jdk22/pull/101 Date: 2024-02-01 13:58:29 +0000
01-02-2024

Changeset: ac1cd319 Author: Sean Coffey <coffeys@openjdk.org> Date: 2024-02-01 13:54:03 +0000 URL: https://git.openjdk.org/jdk/commit/ac1cd3194910793b02e86c2c0dedaa321f137d4e
01-02-2024

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/17668 Date: 2024-02-01 11:37:33 +0000
01-02-2024

The 3 certificates used in this test all expire on Feb 1st 2024. (e.g. [1]) We should set date params for this test. [1] Version: V3 Subject: C=US, ST=Massachusetts, L=Test Locality, O=Test Org, OU=Test Org Unit, CN=Intermediate CA 2 Signature Algorithm: SHA1withRSA, OID = 1.2.840.113549.1.1.5 Key: Sun RSA public key, 1024 bits params: null modulus: 135279177578973379793142485867119687483686157873688335433122587139796724213768971614350067914521650520469241569700527477186014982451516913583600165805225639427111057972952177852858622695365928472460876923795675326976878745611229200158195147044221699517013485357565074122383525335895070847531372150706588410391 public exponent: 65537 Validity: [From: Sat Feb 01 05:00:00 GMT 2014, To: Thu Feb 01 05:00:00 GMT 2024] Issuer: C=US, ST=Massachusetts, L=Test Locality, O=Test Org, OU=Test Org Unit, CN=Root SerialNumber: 02
01-02-2024

This test run pass CST 2024-02-01 06:00, run fail CST 2024-02-01 14:00. Maybe the cert is expired
01-02-2024