GUACAMOLE-611: Handle sublasses of Error in addition to RuntimeException.

This commit is contained in:
Michael Jumper
2018-08-25 13:52:41 -07:00
parent cc742f2143
commit 9d4aae187b

View File

@@ -222,6 +222,19 @@ public class AuthenticationProviderFacade implements AuthenticationProvider {
throw e;
}
catch (Error e) {
// Skip using this authentication provider if configured to ignore
// internal failures during auth
if (isFailureTolerated()) {
warnAuthProviderSkipped(e);
return null;
}
warnAuthAborted();
throw e;
}
}
@@ -289,6 +302,19 @@ public class AuthenticationProviderFacade implements AuthenticationProvider {
throw e;
}
catch (Error e) {
// Skip using this authentication provider if configured to ignore
// internal failures during auth
if (isFailureTolerated()) {
warnAuthProviderSkipped(e);
return null;
}
warnAuthAborted();
throw e;
}
}