Silence SASL exception (#3208)

This commit is contained in:
Tudor Malene 2018-05-22 11:25:31 +01:00 committed by GitHub
parent 48b126321b
commit c2c792eccf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -104,7 +104,12 @@ class BrokerJaasLoginModule : BaseBrokerJaasLoginModule() {
loginSucceeded = true
return true
} catch (e: Exception) {
// This is a known problem, so we swallow this exception. A peer will attempt to connect without presenting client certificates during SASL
if (e is IllegalArgumentException && e.stackTrace.any { it.className == "org.apache.activemq.artemis.protocol.amqp.sasl.PlainSASL" }) {
log.trace("SASL Login failed.")
} else {
log.error("Login failed: ${e.message}", e)
}
if (e is LoginException) {
throw e
} else {