Details
-
Bug
-
Resolution: Fixed
-
P3
-
19, 20, 21
-
b04
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8311357 | 21.0.1 | Rajan Halade | P3 | Resolved | Fixed | b02 |
JDK-8311057 | 21 | Rajan Halade | P3 | Resolved | Fixed | b29 |
Description
Test: sun/security/tools/jarsigner/compatibility/Compatibility.java
The Test is using wrong key size for EC Line:462
return new int[] { 384, 571, 0 }; // 0 is no keysize specified
It should be 521 instead of 571.
Also there are few Test output pattern mismatch exist which marks the Passed testcase to Failed.
Ex: The Test failed with message
java.lang.RuntimeException: The line ' Signature algorithm: SHA384withRSA, 3072-bit key' does not match pattern '^ ( Signature algorithm: DEFAULTwithRSA, 3072-bit key)|( Digest algorithm: SHA-512)$'
Here it looks like the Test expected pattern message has been modified in jarsigner output which cause the mismatch and it need correction in Test file.
The Test is using wrong key size for EC Line:462
return new int[] { 384, 571, 0 }; // 0 is no keysize specified
It should be 521 instead of 571.
Also there are few Test output pattern mismatch exist which marks the Passed testcase to Failed.
Ex: The Test failed with message
java.lang.RuntimeException: The line ' Signature algorithm: SHA384withRSA, 3072-bit key' does not match pattern '^ ( Signature algorithm: DEFAULTwithRSA, 3072-bit key)|( Digest algorithm: SHA-512)$'
Here it looks like the Test expected pattern message has been modified in jarsigner output which cause the mismatch and it need correction in Test file.
Attachments
Issue Links
- backported by
-
JDK-8311057 sun/security/tools/jarsigner/compatibility/Compatibility.java use wrong key size for EC
-
- Resolved
-
-
JDK-8311357 sun/security/tools/jarsigner/compatibility/Compatibility.java use wrong key size for EC
-
- Resolved
-
- duplicates
-
JDK-8310894 Remove sun/security/tools/jarsigner/compatibility/Compatibility.java as source 7 compatibility was removed
-
- Closed
-
- links to
-
Commit openjdk/jdk21/ed98bd7d
-
Commit openjdk/jdk/130a9f13
-
Review openjdk/jdk21/74
-
Review openjdk/jdk/14602
(2 links to)