mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 21:27:40 +00:00
GUACAMOLE-611: Handle sublasses of Error in addition to RuntimeException.
This commit is contained in:
@@ -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;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user