[
https://issues.apache.org/jira/browse/IOTDB-4018?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17607604#comment-17607604
]
xiaozhihong commented on IOTDB-4018:
------------------------------------
The final decision: the path is not configured according to the wildcard **,
all paths are root, or specific paths, such as root.sg...
> The path in the permissions contains wildcards * and ** path adaptation does
> not work
> -------------------------------------------------------------------------------------
>
> Key: IOTDB-4018
> URL: https://issues.apache.org/jira/browse/IOTDB-4018
> Project: Apache IoTDB
> Issue Type: Bug
> Components: Planner/SQLOptimizer
> Affects Versions: 0.13.0
> Reporter: xiaozhihong
> Assignee: 任宇华
> Priority: Major
> Labels: pull-request-available
> Fix For: 0.13.2
>
> Attachments: image-2022-08-04-16-35-26-716.png,
> image-2022-08-04-16-54-24-980.png
>
>
> In V0.13, the root user creates a common user user01 and grants a certain
> permission to user01, but when the grant path contains ** or *, the wildcard
> does not work, so user01 still prompts no permission when performing
> operations.
> {code:java}
> [xzh@i-3m56qrdq apache-iotdb-0.13.0-all-bin]$ ./sbin/start-cli.sh
> ---------------------
> Starting IoTDB Cli
> ---------------------
> _____ _________ ______ ______
> |_ _| | _ _ ||_ _ `.|_ _ \
> | | .--.|_/ | | \_| | | `. \ | |_) |
> | | / .'`\ \ | | | | | | | __'.
> _| |_| \__. | _| |_ _| |_.' /_| |__) |
> |_____|'.__.' |_____| |______.'|_______/ version 0.13.0
>
> IoTDB> login successfully
> IoTDB> create user user01 'pass1234';
> > grant user user01 privileges insert_timeseries on root.line1;
> Msg: The statement is executed successfully.
> Msg: The statement is executed successfully.
> IoTDB> GRANT USER user01 PRIVILEGES SET_STORAGE_GROUP ON root.**;
> Msg: The statement is executed successfully.
> IoTDB> list user privileges user01;
> +----+------------------------------+
> |role| privilege|
> +----+------------------------------+
> | |root.line1 : INSERT_TIMESERIES|
> | | root.** : SET_STORAGE_GROUP|
> +----+------------------------------+
> Total line number = 2
> It costs 0.031s
> {code}
> !image-2022-08-04-16-54-24-980.png|width=574,height=377!
> !image-2022-08-04-16-35-26-716.png|width=580,height=224!
--
This message was sent by Atlassian Jira
(v8.20.10#820010)