apache / doris

Apache Doris is an easy-to-use, high performance and unified analytics database.
https://doris.apache.org
Apache License 2.0
12.66k stars 3.27k forks source link

[Bug] After revoke role, the corresponding permissions are not displayed normally #24025

Open penglele opened 1 year ago

penglele commented 1 year ago

Search before asking

Version

2.0.1-rc04

What's Wrong?

I have a question for revoke create user ceshilgp@'172%' IDENTIFIED by '123456'; create role role2; grant grant_priv on internal.db_ceshi.* to role 'role2'; grant 'role2' to ceshi_lgp@'172%'; revoke 'role2' from ceshi_lgp@'172%'; ----success show grants for ceshi_lgp@'172%'; ---The permissions for role2 remain in DatabasePrivs grant_priv

What You Expected?

After revoke role, the corresponding permissions are restored, and the show grant display is normal

How to Reproduce?

create user ceshilgp@'172%' IDENTIFIED by '123456'; create role role2; grant grant_priv on internal.db_ceshi.* to role 'role2'; grant 'role2' to ceshi_lgp@'172%'; revoke 'role2' from ceshi_lgp@'172%';
show grants for ceshi_lgp@'172%';

Anything Else?

No response

Are you willing to submit PR?

Code of Conduct

ixzc commented 1 year ago

I didn't reproduce your question. you can try it again.

image image