Details
-
Bug
-
Status: Patch Available
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
-
None
Description
The short-circuited connection will bypass the RPC and the RPC context didn't change. So it still use the old RPC user to write ACL table and User.runAsLoginUser not work.
AccessController's grant method.
User.runAsLoginUser(new PrivilegedExceptionAction<Void>() { @Override public Void run() throws Exception { // regionEnv is set at #start. Hopefully not null at this point. try (Table table = regionEnv.getConnection(). getTable(AccessControlLists.ACL_TABLE_NAME)) { AccessControlLists.addUserPermission(regionEnv.getConfiguration(), perm, table, request.getMergeExistingPermissions()); } return null; } });
Attachments
Attachments
Issue Links
- links to