You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@iotdb.apache.org by "xiaozhihong (Jira)" <ji...@apache.org> on 2022/03/14 07:31:00 UTC

[jira] [Created] (IOTDB-2736) Ordinary users are granted permission to DELETE_STORAGE_GROUP,but report 401

xiaozhihong created IOTDB-2736:
----------------------------------

             Summary: Ordinary users are granted permission to DELETE_STORAGE_GROUP,but report 401
                 Key: IOTDB-2736
                 URL: https://issues.apache.org/jira/browse/IOTDB-2736
             Project: Apache IoTDB
          Issue Type: Bug
          Components: Core/Server
    Affects Versions: 0.13.0-SNAPSHOT
            Reporter: xiaozhihong
         Attachments: image-2022-03-14-15-30-00-835.png

Ordinary user A enter the CLI, but does not have permission when deleting a storage group, and then enter the CLI as the root user, and a 401 error is displayed during authorization.
User A :
{code:java}
IoTDB> delete storage group root.ln
Msg: 602: No permissions for this operation DELETE_STORAGE_GROUP {code}
User root:
{code:java}
IoTDB> GRANT USER xzh_01 PRIVILEGES DELETE_STORAGE_GROUP on root.ln;
Msg: 401: Error occurred while parsing SQL to physical plan: line 1:29 mismatched input 'DELETE_STORAGE_GROUP' expecting {ALL, PRIVILEGE_VALUE} {code}
The log is:

!image-2022-03-14-15-30-00-835.png!



--
This message was sent by Atlassian Jira
(v8.20.1#820001)