Skip to content

Commit

Permalink
Bug2203220-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=2203220
  • Loading branch information
ladycfu committed May 27, 2023
1 parent cca8448 commit f2f503e
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,9 @@ private String formDN(IRequest 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 f2f503e

Please sign in to comment.