Skip to content
Browse files

[JENKINS-35652] - Authorities resolution: Catch Runtime Exceptions fr…

…om the SecurityRealm (#20)
  • Loading branch information
oleg-nenashev committed Jun 13, 2016
1 parent fe8a518 commit 62f4dda20827c375fc565e0105fe06550aed5361
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/main/java/com/michelin/cio/hudson/plugins/rolestrategy/
@@ -120,6 +120,10 @@ private boolean hasPermission(String sid, Permission p, RoleType roleType, Acces
LOGGER.log(Level.FINE, "Bad credentials", e);
} catch (DataAccessException e) {
LOGGER.log(Level.FINE, "failed to access the data", e);
} catch (RuntimeException ex) {
// There maybe issues in the logic, which lead to IllegalStateException in Acegi Security (JENKINS-35652)
// So we want to ensure this method does not fail horribly in such case
LOGGER.log(Level.WARNING, "Unhandled exception during user authorities processing", ex);

0 comments on commit 62f4dda

Please sign in to comment.
You can’t perform that action at this time.