HBASE-13069 Thrift Http Server returns an error code of 500 instead of 401 when authentication fails (Srikanth Srungarapu)
This commit is contained in:
parent
365054c110
commit
03d8918142
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue