[MDEV-28743] Roles without grants are handled wrong Created: 2022-06-03 Updated: 2023-04-27 |
|
| Status: | Confirmed |
| Project: | MariaDB Server |
| Component/s: | Authentication and Privilege System |
| Affects Version/s: | 10.6.8, 10.3, 10.4, 10.5, 10.6, 10.7, 10.8 |
| Fix Version/s: | 10.4, 10.5, 10.6 |
| Type: | Bug | Priority: | Major |
| Reporter: | Walter van der Geest | Assignee: | Sergei Golubchik |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Windows 10 |
||
| Description |
|
If a role is created and no grants have been granted to this role (so it only has USAGE grant), and this role is granted to another role, which is granted to a third role, the whole privilege system of the user enabling this third role is empty. Example
When trying to access anything in the database, this is the result:
As soon as the app_role_1 contains at least 1 grant, everything works fine:
|
| Comments |
| Comment by Sergei Golubchik [ 2022-06-21 ] | ||||||||||||||||||||||||||
|
Thanks! Confirmed.
Note that if flush privileges is commented out, the error disappears |