Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jdk_security1 FAILED in Test_openjdk8_hs_extended.openjdk (all platforms) #4244

Closed
smlambert opened this issue Jan 14, 2023 · 6 comments
Closed
Assignees

Comments

@smlambert
Copy link
Contributor

2 testcases in jdk_security1 fail as follows:

java/security/cert/CertPathBuilder/targetConstraints/BuildEEBasicConstraints.java

sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
	at sun.security.provider.certpath.SunCertPathBuilder.build(SunCertPathBuilder.java:141)
	at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:126)
	at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:280)
	at CertUtils.build(CertUtils.java:232)
	at BuildEEBasicConstraints.main(BuildEEBasicConstraints.java:77)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
	at java.lang.Thread.run(Thread.java:750)

java/security/cert/pkix/policyChanges/TestPolicy.java

java.security.cert.CertPathValidatorException: validity check failed
	at sun.security.provider.certpath.PKIXMasterCertPathValidator.validate(PKIXMasterCertPathValidator.java:135)
	at sun.security.provider.certpath.PKIXCertPathValidator.validate(PKIXCertPathValidator.java:220)
	at sun.security.provider.certpath.PKIXCertPathValidator.validate(PKIXCertPathValidator.java:140)
	at sun.security.provider.certpath.PKIXCertPathValidator.engineValidate(PKIXCertPathValidator.java:79)
	at java.security.cert.CertPathValidator.validate(CertPathValidator.java:292)
	at TestPolicy.main(TestPolicy.java:102)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
	at java.lang.Thread.run(Thread.java:750)
Caused by: java.security.cert.CertificateExpiredException: NotAfter: Mon Nov 07 11:57:03 GMT 2022
	at sun.security.x509.CertificateValidity.valid(CertificateValidity.java:277)
	at sun.security.x509.X509CertImpl.checkValidity(X509CertImpl.java:677)
	at sun.security.provider.certpath.BasicChecker.verifyValidity(BasicChecker.java:190)
	at sun.security.provider.certpath.BasicChecker.check(BasicChecker.java:144)
	at sun.security.provider.certpath.PKIXMasterCertPathValidator.validate(PKIXMasterCertPathValidator.java:125)

Test Info
Test Name: jdk_security1_0
Test Duration: 3 min 10 sec
Machine: test-docker-ubuntu2204-ppc64le-1
TRSS link for the test output: https://trss.adoptium.net/output/test?id=63c21fffed0b30773ba35f48

Build Info
Build Name: Test_openjdk8_hs_extended.openjdk_ppc64le_linux_testList_1
Jenkins Build start time: Jan 13 2023, 06:19 pm
Jenkins Build URL: https://ci.adoptopenjdk.net/job/Test_openjdk8_hs_extended.openjdk_ppc64le_linux_testList_1/86/
TRSS link for the build: https://trss.adoptium.net/allTestsInfo?buildId=63c21f23ed0b30773ba35d15

Java Version
openjdk version "1.8.0_362"
OpenJDK Runtime Environment (Temurin)(build 1.8.0_362-b06)
OpenJDK 64-Bit Server VM (Temurin)(build 25.362-b06, mixed mode)

This test has been failed 11 times since Nov 12 2022, 07:37 am
Java Version when the issue first seen
openjdk version "1.8.0_362"
OpenJDK Runtime Environment (Temurin)(build 1.8.0_362-b02)
OpenJDK 64-Bit Server VM (Temurin)(build 25.362-b02, mixed mode)
Jenkins Build URL: https://ci.adoptopenjdk.net/job/Test_openjdk8_hs_extended.openjdk_ppc64le_linux_testList_1/75/

The test failed on machine test-docker-ubuntu2204-ppc64le-1 1 times
The test failed on machine test-docker-debian11-ppc64le-1 1 times
The test failed on machine test-osuosl-ubuntu1604-ppc64le-1 6 times
The test failed on machine test-osuosl-ubuntu1604-ppc64le-2 1 times
The test failed on machine test-osuosl-ubuntu1804-ppc64le-1 1 times
The test failed on machine test-osuosl-ubuntu1804-ppc64le-2 1 times

Rerun in Grinder

@smlambert
Copy link
Contributor Author

smlambert commented Jan 15, 2023

Also seen on x64_linux (details #4245 (comment)), appears from deep history to have begun failing between Nov 5 and Nov 12 runs, then consistently failing in all subsequent runs.

@smlambert
Copy link
Contributor Author

smlambert commented Jan 17, 2023

BuildEEBasicConstraints.java is https://bugs.openjdk.org/browse/JDK-8296485 - which shows as backported to 8 via https://bugs.openjdk.org/browse/JDK-8297058 on Nov 15 - need to verify if that testcase fix is actually in our jdk8u mirror.

openjdk/jdk8u-dev#188 is the change and it is not inhttps://github.com/adoptium/jdk8u/blob/jdk8u362-beforereleastest-ga/jdk/test/java/security/cert/CertPathBuilder/targetConstraints/BuildEEBasicConstraints.java

@smlambert
Copy link
Contributor Author

TestPolicy.java failure is https://bugs.openjdk.org/browse/JDK-8296480

@smlambert smlambert changed the title jdk_security1 FAILED in Test_openjdk8_hs_extended.openjdk_ppc64le_linux_testList_1 jdk_security1 FAILED in Test_openjdk8_hs_extended.openjdk (all platforms) Jan 23, 2023
@smlambert
Copy link
Contributor Author

Need to exclude via the upstream bug URLs in the absence of backported fixes.

@smlambert
Copy link
Contributor Author

BuildEEBasicConstraints and TestPolicy fix is now in our mirror, so closing.

@github-project-automation github-project-automation bot moved this from Todo to Done in 2024 1Q Adoptium Plan Feb 29, 2024
@smlambert smlambert self-assigned this Mar 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

2 participants