You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@iotdb.apache.org by "Jialin Qiao (Jira)" <ji...@apache.org> on 2022/10/04 01:26:00 UTC

[jira] [Assigned] (IOTDB-3149) There is a difference between adding ** path and without a path to list user privileges

     [ https://issues.apache.org/jira/browse/IOTDB-3149?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jialin Qiao reassigned IOTDB-3149:
----------------------------------

    Assignee: Jialin Qiao  (was: 张洪胤)

> There is a difference between adding ** path and  without a path to list user privileges
> ----------------------------------------------------------------------------------------
>
>                 Key: IOTDB-3149
>                 URL: https://issues.apache.org/jira/browse/IOTDB-3149
>             Project: Apache IoTDB
>          Issue Type: Bug
>          Components: Core/Server
>    Affects Versions: master branch
>            Reporter: xiaozhihong
>            Assignee: Jialin Qiao
>            Priority: Minor
>         Attachments: image-2022-05-11-10-36-43-442.png
>
>
> List the privileges that a user has: After executing without the path (root.*{*}) and with the path (root.{*}*), there are differences in the privileges displayed by the user.
> The following SQL shows:
> LIST USER PRIVILEGES user01: Shows all the privileges of the current user.
> LIST PRIVILEGES USER user01 on root.**: Generally speaking, all paths are wildcarded **, but only the privileges of a certain path are currently displayed.
> {code:java}
> IoTDB> LIST USER PRIVILEGES user01;
> +----+-------------------------------------+
> |role|                            privilege|
> +----+-------------------------------------+
> |    |             root : SET_STORAGE_GROUP|
> |    |          root.ln : CREATE_TIMESERIES|
> |    |root.** : SET_STORAGE_GROUP LIST_USER|
> |    |       root.ln.** : CREATE_TIMESERIES|
> +----+-------------------------------------+
> Total line number = 4
> It costs 0.003s
> IoTDB> LIST PRIVILEGES USER user01 on root.**;
> +----+-------------------------------------+
> |role|                            privilege|
> +----+-------------------------------------+
> |    |root.** : SET_STORAGE_GROUP LIST_USER|
> +----+-------------------------------------+
> Total line number = 1
> It costs 0.003s
>  {code}
> !image-2022-05-11-10-36-43-442.png!



--
This message was sent by Atlassian Jira
(v8.20.10#820010)