sentry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ann...@apache.org
Subject incubator-sentry git commit: SENTRY-1060: Improve the SentryAuthFilter error message when authentication failure (Hao Hao via Anne Yu)
Date Thu, 11 Feb 2016 00:10:56 GMT
Repository: incubator-sentry
Updated Branches:
  refs/heads/master 5c2597de0 -> 5659d39d6


SENTRY-1060: Improve the SentryAuthFilter error message when authentication failure (Hao Hao
via Anne Yu)


Project: http://git-wip-us.apache.org/repos/asf/incubator-sentry/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-sentry/commit/5659d39d
Tree: http://git-wip-us.apache.org/repos/asf/incubator-sentry/tree/5659d39d
Diff: http://git-wip-us.apache.org/repos/asf/incubator-sentry/diff/5659d39d

Branch: refs/heads/master
Commit: 5659d39d6c832da1e8261710798832601348d4b1
Parents: 5c2597d
Author: Anne Yu <anneyu@apache.org>
Authored: Wed Feb 10 16:37:59 2016 -0800
Committer: Anne Yu <anneyu@apache.org>
Committed: Wed Feb 10 16:37:59 2016 -0800

----------------------------------------------------------------------
 .../apache/sentry/provider/db/service/thrift/SentryAuthFilter.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-sentry/blob/5659d39d/sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/service/thrift/SentryAuthFilter.java
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/service/thrift/SentryAuthFilter.java
b/sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/service/thrift/SentryAuthFilter.java
index 29759e8..388e329 100644
--- a/sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/service/thrift/SentryAuthFilter.java
+++ b/sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/service/thrift/SentryAuthFilter.java
@@ -55,7 +55,7 @@ public class SentryAuthFilter extends AuthenticationFilter {
     LOG.debug("Authenticating user: " + userName + " from request.");
     if (!allowUsers.contains(userName)) {
       response.sendError(HttpServletResponse.SC_FORBIDDEN,
-          userName + " is unauthorized. status code: " + HttpServletResponse.SC_FORBIDDEN);
+          "Unauthorized user status code: " + HttpServletResponse.SC_FORBIDDEN);
       throw new ServletException(userName + " is unauthorized. status code: " + HttpServletResponse.SC_FORBIDDEN);
     }
     super.doFilter(filterChain, request, response);


Mime
View raw message