apache / apache/iotdb

[Bug] 授权失效

未关闭
#12,976 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Java
星标
6.4k
派生
1.2k
平均合并
1 天 23 小时
30 天内合并 PR
115

描述

### Search before asking

- [X] I searched in the [issues](https://github.com/apache/iotdb/issues) and found nothing similar.

### Version

0.13.3

### Describe the bug and provide the minimal reproduce step

![1](https://github.com/user-attachments/assets/f4a89cbb-b15d-4a80-a0af-c08d193fd946)

### What did you expect to see?

可以根据不同路径级别授权

### What did you see instead?

执行两种授权语句后,权限都是授权到了 root 而不是精确到root.test3_tonglian_transactions2021 这个级别
GRANT USER user823 PRIVILEGES ALL on root.test3_tonglian_transactions2021
GRANT USER user824 PRIVILEGES ALL on root.test3_tonglian_transactions2021.**

### Anything else?

_No response_

### Are you willing to submit a PR?

- [X] I'm willing to submit a PR!

贡献指南

打开贡献指南

调研方向

首先,使用 issue 中的两条 GRANT 语句在 IoTDB 0.13.3 上复现该行为,并比较 root 和 root.test3_tonglian_transactions2021 的结果权限。完成标准是路径级授权能够区分精确路径和通配符路径,而不是在 root 上同时授予两者。

由索引模型根据 Issue 内容生成。

评估

技术栈
java
领域
authorization, database
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。