Skip to content

Commit

Permalink
[JENKINS-35652] - Authorities resolution: Catch Runtime Exceptions fr…
Browse files Browse the repository at this point in the history
…om the SecurityRealm (#20)
  • Loading branch information
oleg-nenashev committed Jun 13, 2016
1 parent fe8a518 commit 62f4dda
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit 62f4dda

Please sign in to comment.