JDK-8246385 : sun/security/lib/cacerts/VerifyCACerts.java one more failure due to wrong checksum
  • Type: Bug
  • Component: security-libs
  • Affected Version: 15
  • Priority: P4
  • Status: Closed
  • Resolution: Not an Issue
  • OS: generic
  • Submitted: 2020-06-02
  • Updated: 2020-06-03
  • Resolved: 2020-06-03
Related Reports
Relates :  
Description
* How to reproduce 
$ jtreg -v -a -testjdk:[jdk-15-ea+25] test/jdk/sun/security/lib/cacerts/VerifyCACerts.java

It was also checked on jdk-15-ea+20 - the test failed.

* System.err:

ERROR: wrong checksum
60:EF:3A:F8:44:CF:79:6F:A3:55:AD:3A:80:61:A7:EE:69:2A:B4:E4:F4:01:C4:47:FF:F8:25:1E:AB:87:31:F2
Expected checksum
22:AA:EB:89:4E:A4:EA:25:CA:3E:DA:0F:F1:2B:FA:05:4B:68:C5:E1:3A:F9:03:40:BF:EF:F5:13:7C:CE:BC:60
ERROR: 91 entries, should be 93
ERROR: addtrustclass1ca [jdk] is not in cacerts
ERROR: keynectisrootca [jdk] is not in cacerts
ERROR: cert is expired
ERROR: cert "addtrustexternalca [jdk]" expiry "Sat May 30 17:48:38 NOVT 2020" will expire within 90 days
ERROR: cert is expired
ERROR: cert "addtrustqualifiedca [jdk]" expiry "Sat May 30 17:44:50 NOVT 2020" will expire within 90 days
java.lang.Exception: At least one cacert test failed
	at VerifyCACerts.main(VerifyCACerts.java:353)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:564)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
	at java.base/java.lang.Thread.run(Thread.java:832)

JavaTest Message: Test threw exception: java.lang.Exception: At least one cacert test failed
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.lang.Exception: At least one cacert test failed

Comments
Thanks for confirmation. I am closing this ticket as "Not an Issue".
03-06-2020

Nope. There are no these patches in my version of test - it looks like the test is outdated
03-06-2020

Can you please confirm you have correct version of test file? JDK-8225068 and JDK-8225069 fixed in b22 updated this test and after these there should be 91 entries in cacerts.
03-06-2020