Repository: incubator-ranger Updated Branches: refs/heads/master 37035c367 -> 688f1c09b
RANGER-1306:Exception logs were not logged in authenticate function for RangerAuthenticationProvider.java Signed-off-by: Colm O hEigeartaigh <cohei...@apache.org> Project: http://git-wip-us.apache.org/repos/asf/incubator-ranger/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-ranger/commit/2afe8af3 Tree: http://git-wip-us.apache.org/repos/asf/incubator-ranger/tree/2afe8af3 Diff: http://git-wip-us.apache.org/repos/asf/incubator-ranger/diff/2afe8af3 Branch: refs/heads/master Commit: 2afe8af3697257485c61426832ad290ff9dcc206 Parents: 37035c3 Author: zhangqiang2 <zhangqia...@zte.com.cn> Authored: Fri Jan 13 17:07:08 2017 +0800 Committer: Colm O hEigeartaigh <cohei...@apache.org> Committed: Tue Jan 17 08:54:30 2017 +0000 ---------------------------------------------------------------------- .../ranger/security/handler/RangerAuthenticationProvider.java | 4 ++++ 1 file changed, 4 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/2afe8af3/security-admin/src/main/java/org/apache/ranger/security/handler/RangerAuthenticationProvider.java ---------------------------------------------------------------------- diff --git a/security-admin/src/main/java/org/apache/ranger/security/handler/RangerAuthenticationProvider.java b/security-admin/src/main/java/org/apache/ranger/security/handler/RangerAuthenticationProvider.java index cc5c8dd..3c327ae 100644 --- a/security-admin/src/main/java/org/apache/ranger/security/handler/RangerAuthenticationProvider.java +++ b/security-admin/src/main/java/org/apache/ranger/security/handler/RangerAuthenticationProvider.java @@ -138,9 +138,13 @@ public class RangerAuthenticationProvider implements AuthenticationProvider { try{ authentication=getJDBCAuthentication(authentication,encoder); }catch (BadCredentialsException e) { + logger.info("Get JDBC Authentication fail: ", e); }catch (AuthenticationServiceException e) { + logger.info("Get JDBC Authentication fail: ", e); }catch (AuthenticationException e) { + logger.info("Get JDBC Authentication fail: ", e); }catch (Exception e) { + logger.info("Get JDBC Authentication fail: ", e); } if(authentication!=null && authentication.isAuthenticated()){ return authentication;