[MDEV-29633] Grants on 10.5+ server with pre-10.4 schema are silently ignored Created: 2022-09-25  Updated: 2023-11-28

Status: Open
Project: MariaDB Server
Component/s: Authentication and Privilege System
Affects Version/s: 10.5, 10.6, 10.7, 10.8, 10.9, 10.10
Fix Version/s: 10.5, 10.6

Type: Bug Priority: Minor
Reporter: Elena Stepanova Assignee: Sergei Golubchik
Resolution: Unresolved Votes: 0
Labels: None


 Description   

If 10.5+ (i.e. a server with new privileges added in 10.5) is started on 10.3 or earlier datadir, and before mysql_upgrade is run, ACL statements are executed, then those which grant new privileges seemingly succeed but don't do anything. I suppose it has something to do with non-existing mysql.global_priv, and the old mysql.user not containing columns for the new privileges, but I would expect an error.

10.5 fb70bb44d0

MariaDB [test]> create user u;
Query OK, 0 rows affected (0.001 sec)
 
MariaDB [test]> grant read_only admin on *.* to u;
Query OK, 0 rows affected (0.000 sec)
 
MariaDB [test]> show grants for u;
+-------------------------------+
| Grants for u@%                |
+-------------------------------+
| GRANT USAGE ON *.* TO `u`@`%` |
+-------------------------------+
1 row in set (0.000 sec)


Generated at Thu Feb 08 10:10:06 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.