hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From te...@apache.org
Subject hbase git commit: HBASE-13069 Thrift Http Server returns an error code of 500 instead of 401 when authentication fails (Srikanth Srungarapu)
Date Fri, 20 Feb 2015 00:36:13 GMT
Repository: hbase
Updated Branches:
  refs/heads/branch-1 49ae4ab67 -> 0a21b1e22


HBASE-13069 Thrift Http Server returns an error code of 500 instead of 401 when authentication
fails (Srikanth Srungarapu)


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/0a21b1e2
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/0a21b1e2
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/0a21b1e2

Branch: refs/heads/branch-1
Commit: 0a21b1e226f8e13e9cde34f70a4dd2459128f00e
Parents: 49ae4ab
Author: tedyu <yuzhihong@gmail.com>
Authored: Thu Feb 19 16:36:00 2015 -0800
Committer: tedyu <yuzhihong@gmail.com>
Committed: Thu Feb 19 16:36:00 2015 -0800

----------------------------------------------------------------------
 .../main/java/org/apache/hadoop/hbase/thrift/ThriftHttpServlet.java | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/0a21b1e2/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/ThriftHttpServlet.java
----------------------------------------------------------------------
diff --git a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/ThriftHttpServlet.java
b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/ThriftHttpServlet.java
index 25c6da3..f3bed0a 100644
--- a/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/ThriftHttpServlet.java
+++ b/hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/ThriftHttpServlet.java
@@ -83,6 +83,7 @@ public class ThriftHttpServlet extends TServlet {
         // Send a 401 to the client
         response.setStatus(HttpServletResponse.SC_UNAUTHORIZED);
         response.getWriter().println("Authentication Error: " + e.getMessage());
+        return;
       }
     }
     String doAsUserFromQuery = request.getHeader("doAs");


Mime
View raw message