mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-8656: logging ignored exceptions
This commit is contained in:
parent
6f2f81c4ac
commit
de2d78b18b
|
|
@ -94,6 +94,7 @@ public class SAML2LogoutAPIAuthenticatorCmd extends BaseCmd implements APIAuthen
|
|||
try {
|
||||
resp.sendRedirect(SAML2AuthManager.SAMLCloudStackRedirectionUrl.value());
|
||||
} catch (IOException ignored) {
|
||||
s_logger.info("[ignored] sending redirected failed.", ignored);
|
||||
}
|
||||
return responseString;
|
||||
}
|
||||
|
|
@ -123,6 +124,7 @@ public class SAML2LogoutAPIAuthenticatorCmd extends BaseCmd implements APIAuthen
|
|||
try {
|
||||
resp.sendRedirect(SAML2AuthManager.SAMLCloudStackRedirectionUrl.value());
|
||||
} catch (IOException ignored) {
|
||||
s_logger.info("[ignored] second redirected sending failed.", ignored);
|
||||
}
|
||||
return responseString;
|
||||
}
|
||||
|
|
@ -134,6 +136,7 @@ public class SAML2LogoutAPIAuthenticatorCmd extends BaseCmd implements APIAuthen
|
|||
try {
|
||||
resp.sendRedirect(SAML2AuthManager.SAMLCloudStackRedirectionUrl.value());
|
||||
} catch (IOException ignored) {
|
||||
s_logger.info("[ignored] final redirected failed.", ignored);
|
||||
}
|
||||
return responseString;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -287,18 +287,21 @@ public class SAML2AuthManagerImpl extends AdapterBase implements SAML2AuthManage
|
|||
try {
|
||||
idpMetadata.setSigningCertificate(KeyInfoHelper.getCertificates(kd.getKeyInfo()).get(0));
|
||||
} catch (CertificateException ignored) {
|
||||
s_logger.info("[ignored] encountered invalid certificate signing.", ignored);
|
||||
}
|
||||
}
|
||||
if (kd.getUse() == UsageType.ENCRYPTION) {
|
||||
try {
|
||||
idpMetadata.setEncryptionCertificate(KeyInfoHelper.getCertificates(kd.getKeyInfo()).get(0));
|
||||
} catch (CertificateException ignored) {
|
||||
s_logger.info("[ignored] encountered invalid certificate encryption.", ignored);
|
||||
}
|
||||
}
|
||||
if (kd.getUse() == UsageType.UNSPECIFIED) {
|
||||
try {
|
||||
unspecifiedKey = KeyInfoHelper.getCertificates(kd.getKeyInfo()).get(0);
|
||||
} catch (CertificateException ignored) {
|
||||
s_logger.info("[ignored] encountered invalid certificate.", ignored);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue