-
Bug
-
Resolution: Fixed
-
P4
-
None
-
b10
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8302208 | 17.0.8-oracle | Sean Coffey | P4 | Resolved | Fixed | b01 |
JDK-8306515 | 17.0.8 | Goetz Lindenmaier | P4 | Resolved | Fixed | b01 |
JDK-8302261 | 11.0.20-oracle | Sean Coffey | P4 | Resolved | Fixed | b01 |
JDK-8306494 | 11.0.20 | Goetz Lindenmaier | P4 | Resolved | Fixed | b01 |
src/share/classes/javax/crypto/JceSecurity.java
static synchronized Exception getVerificationResult(Provider p) {
Object o = verificationResults.get(p);
if (o == PROVIDER_VERIFIED) {
return null;
} else if (o != null) {
return (Exception)o;
}
if (verifyingProviders.get(p) != null) {
// this method is static synchronized, must be recursion
// return failure now but do not save the result
return new NoSuchProviderException("Recursion during verification");
}
try {
verifyingProviders.put(p, Boolean.FALSE);
URL providerURL = getCodeBase(p.getClass());
verifyProviderJar(providerURL);
// Verified ok, cache result
verificationResults.put(p, PROVIDER_VERIFIED);
return null;
} catch (Exception e) {
verificationResults.put(p, e);
return e;
} finally {
verifyingProviders.remove(p);
}
}
==
we should log issues which are detected with provider jar files.
==
There may be other related cases to be examined.
- backported by
-
JDK-8302208 Better exception logging in crypto code
- Resolved
-
JDK-8302261 Better exception logging in crypto code
- Resolved
-
JDK-8306494 Better exception logging in crypto code
- Resolved
-
JDK-8306515 Better exception logging in crypto code
- Resolved
- links to
-
Commit openjdk/jdk11u-dev/aaedfb34
-
Commit openjdk/jdk17u-dev/14e3103d
-
Commit openjdk/jdk/b814cfc3
-
Review openjdk/jdk11u-dev/1833
-
Review openjdk/jdk17u-dev/1253
-
Review openjdk/jdk/12504