xiaozhihong created IOTDB-2769:
----------------------------------
Summary: grant_user_role is granted to user, and report 602 when
executing
Key: IOTDB-2769
URL: https://issues.apache.org/jira/browse/IOTDB-2769
Project: Apache IoTDB
Issue Type: Bug
Components: Core/Server
Affects Versions: 0.13.0-SNAPSHOT
Reporter: xiaozhihong
Attachments: image-2022-03-20-15-53-19-927.png,
image-2022-03-20-15-53-43-476.png
The root user grants the highest role permissions to user01, then user01 enter
the CLI, and when the manager role is granted to user02, the message 602 is
displayed, this message is not right for operating.
{code:java}
// root
GRANT USER user01 PRIVILEGES GRANT_USER_ROLE on root;
GRANT USER user01 PRIVILEGES REVOKE_USER_ROLE on root;
LIST USER PRIVILEGES user01;
//user01
IoTDB> grant manager to user02
Msg: 602: No permissions for this operation GRANT_ROLE_PRIVILEGE{code}
!image-2022-03-20-15-53-19-927.png!
!image-2022-03-20-15-53-43-476.png!
--
This message was sent by Atlassian Jira
(v8.20.1#820001)