[MDEV-29845] ALTER USER <role> pretends to succeed but has no effect Created: 2022-10-21 Updated: 2023-11-28 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Authentication and Privilege System |
| Affects Version/s: | 10.4, 10.5, 10.6, 10.7, 10.8, 10.9, 10.10 |
| Fix Version/s: | 10.4, 10.5, 10.6 |
| Type: | Bug | Priority: | Major |
| Reporter: | Elena Stepanova | Assignee: | Rucha Deodhar |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Description |
|
Set affected versions to 10.4 because I haven't found a variant of ALTER applicable to 10.3 which would reveal the same; but I didn't try all of them.
In the above, alter ... account lock succeeds both for the user account and for the role; but for the user account it actually adds the lock to the JSON, while for the role nothing happens:
However, it is not so for every ALTER USER operation. The next one, setting the limit, succeeds for the user but fails for the role:
I suppose the same should happen for any operation which is not really applicable to roles. PUBLIC introduced in |
| Comments |
| Comment by Oleksandr Byelkin [ 2023-09-26 ] |
|
yes, se have the error "Can't find any matching row in the user table" somewhere lost when execute alter user `role_rec` with max_user_connections 10; |