HBASE-25543 When configuration hadoop.security.authorization is set to false, the system will still try to authorize an RPC and raise AccessDeniedException (#2932) (#2919)
Signed-off-by: Viraj Jasani <vjasani@apache.org> Signed-off-by: Reid Chan <reidchan@apache.org>
This commit is contained in:
parent
f52b457cf9
commit
7d80d9971a
|
@ -1973,7 +1973,7 @@ public class RpcServer implements RpcServerInterface, ConfigurationObserver {
|
|||
} else {
|
||||
processConnectionHeader(buf);
|
||||
this.connectionHeaderRead = true;
|
||||
if (!authorizeConnection()) {
|
||||
if (authorize && !authorizeConnection()) {
|
||||
// Throw FatalConnectionException wrapping ACE so client does right thing and closes
|
||||
// down the connection instead of trying to read non-existent retun.
|
||||
throw new AccessDeniedException("Connection from " + this + " for service " +
|
||||
|
|
Loading…
Reference in New Issue