Skip to content

Commit

Permalink
Bug2190283-part2_LdapSimpleMap_Invalid_cast_warning
Browse files Browse the repository at this point in the history
This patch was part of the patch that was taken out earlier.
It fixes a frivilous WARNING message:

[CRLIssuingPoint-MasterCRL] WARNING: LdapSimpleMap: crl issuer dn:...
org.mozilla.jss.netscape.security.x509.X509CRLImpl cannot be cast to java.security.cert.X509Certificate
It did not attribute to the CI break so I'm putting it back.

fixes (part2) https://bugzilla.redhat.com/show_bug.cgi?id=2190283
  • Loading branch information
ladycfu authored and fmarco76 committed May 29, 2023
1 parent 255f44f commit b643446
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,9 @@ private String formDN(Request req, Object obj) throws
X509CRLImpl crl = (X509CRLImpl) obj;
subjectDN = (X500Name) crl.getIssuerDN();

logger.warn("LdapSimpleMap: crl issuer dn: " + subjectDN + ": " + e.getMessage(), e);
// We know by now that obj is X509CRLImpl instead of
// X509Certificate; no warning needed
// logger.warn("LdapSimpleMap: crl issuer dn: " + subjectDN + ": " + e.getMessage(), e);
} catch (ClassCastException ex) {
logger.warn(CMS.getLogMessage("PUBLISH_PUBLISH_OBJ_NOT_SUPPORTED",
((req == null) ? "" : req.getRequestId().toString())), ex);
Expand Down

0 comments on commit b643446

Please sign in to comment.