-
Type:
Bug
-
Resolution: Fixed
-
Priority:
P4
-
Affects Version/s: 8
-
Component/s: deploy
-
b112
| Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
|---|---|---|---|---|---|---|
| JDK-8034432 | 7u65 | Thomas Ng | P4 | Resolved | Fixed | b01 |
| JDK-8026470 | 7u60 | Thomas Ng | P4 | Closed | Fixed | b01 |
JarSignatureTest.java has three test cases:
1. testAlgorithmAlignment_DSA
2. testAlgorithmAlignment_RSA
3. testAlgorithmAlignment_EC
which fails due to incorrect values of digestAlgorithm
The value set is SHA-1, SHA-256, SHA-256 respectively while the jarSignature (js.getDigestAlgorithm().getName()) has different values (SHA, SHA256, SHA256). This is causing the assertEqual method to fail.
Suggested fix:
Change the value for checking by removing the '-'
and in case of the default value - DSA set it to SHA instead of SHA1
1. testAlgorithmAlignment_DSA
2. testAlgorithmAlignment_RSA
3. testAlgorithmAlignment_EC
which fails due to incorrect values of digestAlgorithm
The value set is SHA-1, SHA-256, SHA-256 respectively while the jarSignature (js.getDigestAlgorithm().getName()) has different values (SHA, SHA256, SHA256). This is causing the assertEqual method to fail.
Suggested fix:
Change the value for checking by removing the '-'
and in case of the default value - DSA set it to SHA instead of SHA1
- backported by
-
JDK-8034432 JarSignatureTest.java - testAlgorithmAlignment_DSA,RSA,EC failed due to unequal digestAlgorithm
-
- Resolved
-
-
JDK-8026470 JarSignatureTest.java - testAlgorithmAlignment_DSA,RSA,EC failed due to unequal digestAlgorithm
-
- Closed
-