mariadb/mysql-test/suite/roles
Vicențiu Ciorbaru 145932a57b MDEV-29465: Inherited columns privs for roles wrongly set mysql.tables_priv column
There was a bug in the ACL internal data structures GRANT_TABLE and
GRANT_COLUMN. The semantics are: GRANT_TABLE::init_cols and
GRANT_COLUMN::init_privs represent the bits that correspond to the
privilege bits stored in the physical tables. The other struct members
GRANT_TABLE::cols and GRANT_COLUMN::privs represent the actual access
bits, as they may be modified through role grants.

The error in logic was mixing the two fields and thus we ended up
storing the logical access bits in the physical tables, instead of the
physical (init_xxx) bits.

This caused subsequent DBUG_ASSERT failures when dropping the involved
roles.
2022-09-14 14:40:50 +03:00
..
acl_load_mutex-5170.result
acl_load_mutex-5170.test
acl_statistics.opt
acl_statistics.result
acl_statistics.test
admin.result MDEV-26080: SHOW GRANTS does not quote role names properly for DEFAULT ROLE 2021-07-09 08:25:54 +02:00
admin.test
create_and_drop_current.result
create_and_drop_current.test
create_and_drop_role.result MDEV-26080: SHOW GRANTS does not quote role names properly for DEFAULT ROLE 2021-07-09 08:25:54 +02:00
create_and_drop_role.test
create_and_drop_role_invalid_user_table.result
create_and_drop_role_invalid_user_table.test
create_and_grant_role.result MDEV-26080: SHOW GRANTS does not quote role names properly for DEFAULT ROLE 2021-07-09 08:25:54 +02:00
create_and_grant_role.test
current_role_view-12666.result
current_role_view-12666.test
default_create_user_not_role.result
default_create_user_not_role.test
definer.result MDEV-29446 Change SHOW CREATE TABLE to display default collation 2022-09-12 22:10:39 +04:00
definer.test
drop_current_role.result
drop_current_role.test
drop_current_user-5176.result
drop_current_user-5176.test
drop_routines.result MDEV-26080: SHOW GRANTS does not quote role names properly for DEFAULT ROLE 2021-07-09 08:25:54 +02:00
drop_routines.test
flush_roles-12366.result
flush_roles-12366.test
flush_roles-17898.result MDEV-26080: SHOW GRANTS does not quote role names properly for DEFAULT ROLE 2021-07-09 08:25:54 +02:00
flush_roles-17898.test
grant-5771.result MDEV-26080: SHOW GRANTS does not quote role names properly for DEFAULT ROLE 2021-07-09 08:25:54 +02:00
grant-5771.test
grant_empty.result MDEV-26080: SHOW GRANTS does not quote role names properly for DEFAULT ROLE 2021-07-09 08:25:54 +02:00
grant_empty.test
grant_proxy-5526.result
grant_proxy-5526.test
grant_revoke_current.result MDEV-26080: SHOW GRANTS does not quote role names properly for DEFAULT ROLE 2021-07-09 08:25:54 +02:00
grant_revoke_current.test
grant_role_auto_create_user.result
grant_role_auto_create_user.test
i_s_applicable_roles_is_default.result
i_s_applicable_roles_is_default.test
ip-6401.result MDEV-26080: SHOW GRANTS does not quote role names properly for DEFAULT ROLE 2021-07-09 08:25:54 +02:00
ip-6401.test
none_public.result
none_public.test
password.result
password.test
prepare_stmt_with_role.result MDEV-26080: SHOW GRANTS does not quote role names properly for DEFAULT ROLE 2021-07-09 08:25:54 +02:00
prepare_stmt_with_role.test
ps.result
ps.test
rebuild_role_grants.result Merge 10.2 into 10.3 2021-10-21 13:41:04 +03:00
rebuild_role_grants.test MDEV-17964: Assertion `status == 0' failed in add_role_user_mapping_action 2021-10-15 19:19:36 +03:00
recursive.inc
recursive.result MDEV-26080: SHOW GRANTS does not quote role names properly for DEFAULT ROLE 2021-07-09 08:25:54 +02:00
recursive.test
recursive_dbug.result MDEV-26080: SHOW GRANTS does not quote role names properly for DEFAULT ROLE 2021-07-09 08:25:54 +02:00
recursive_dbug.test
rename_user.result MDEV-29131 Assertion `status == 0' failed when renaming user after deleting table roles_mapping 2022-07-29 21:58:38 +02:00
rename_user.test MDEV-29131 Assertion `status == 0' failed when renaming user after deleting table roles_mapping 2022-07-29 21:58:38 +02:00
revoke_all.result MDEV-26080: SHOW GRANTS does not quote role names properly for DEFAULT ROLE 2021-07-09 08:25:54 +02:00
revoke_all.test
role_case_sensitive-10744.result MDEV-26080: SHOW GRANTS does not quote role names properly for DEFAULT ROLE 2021-07-09 08:25:54 +02:00
role_case_sensitive-10744.test
roles_tables_priv-29465.result MDEV-29465: Inherited columns privs for roles wrongly set mysql.tables_priv column 2022-09-14 14:40:50 +03:00
roles_tables_priv-29465.test MDEV-29465: Inherited columns privs for roles wrongly set mysql.tables_priv column 2022-09-14 14:40:50 +03:00
rpl_definer.result MDEV-26080: SHOW GRANTS does not quote role names properly for DEFAULT ROLE 2021-07-09 08:25:54 +02:00
rpl_definer.test
rpl_grant_revoke_current_role-8638.result
rpl_grant_revoke_current_role-8638.test
set_and_drop.result MDEV-26080: SHOW GRANTS does not quote role names properly for DEFAULT ROLE 2021-07-09 08:25:54 +02:00
set_and_drop.test
set_default_role_clear.result MDEV-26080: SHOW GRANTS does not quote role names properly for DEFAULT ROLE 2021-07-09 08:25:54 +02:00
set_default_role_clear.test
set_default_role_for.result Merge branch '10.2' into 10.3 2021-07-21 20:11:07 +02:00
set_default_role_for.test
set_default_role_invalid.result Merge branch '10.2' into 10.3 2021-07-21 20:11:07 +02:00
set_default_role_invalid.test
set_default_role_new_connection.result MDEV-26080: SHOW GRANTS does not quote role names properly for DEFAULT ROLE 2021-07-09 08:25:54 +02:00
set_default_role_new_connection.test
set_default_role_ps-6960.result
set_default_role_ps-6960.test
set_role-5232.result
set_role-5232.test
set_role-9614.result MDEV-26080: SHOW GRANTS does not quote role names properly for DEFAULT ROLE 2021-07-09 08:25:54 +02:00
set_role-9614.test
set_role-13655.result MDEV-26080: SHOW GRANTS does not quote role names properly for DEFAULT ROLE 2021-07-09 08:25:54 +02:00
set_role-13655.test
set_role-database-recursive.result MDEV-26080: SHOW GRANTS does not quote role names properly for DEFAULT ROLE 2021-07-09 08:25:54 +02:00
set_role-database-recursive.test
set_role-database-simple.result
set_role-database-simple.test
set_role-multiple-role.result MDEV-26080: SHOW GRANTS does not quote role names properly for DEFAULT ROLE 2021-07-09 08:25:54 +02:00
set_role-multiple-role.test
set_role-recursive.result Merge branch '10.2' into 10.3 2021-07-21 20:11:07 +02:00
set_role-recursive.test
set_role-routine-simple.result MDEV-26080: SHOW GRANTS does not quote role names properly for DEFAULT ROLE 2021-07-09 08:25:54 +02:00
set_role-routine-simple.test
set_role-simple.result MDEV-26080: SHOW GRANTS does not quote role names properly for DEFAULT ROLE 2021-07-09 08:25:54 +02:00
set_role-simple.test
set_role-table-column-priv.result MDEV-26080: SHOW GRANTS does not quote role names properly for DEFAULT ROLE 2021-07-09 08:25:54 +02:00
set_role-table-column-priv.test
set_role-table-simple.result MDEV-26080: SHOW GRANTS does not quote role names properly for DEFAULT ROLE 2021-07-09 08:25:54 +02:00
set_role-table-simple.test
show_create_database-10463.result MDEV-29446 Change SHOW CREATE TABLE to display default collation 2022-09-12 22:10:39 +04:00
show_create_database-10463.test
show_grants.result MDEV-26080: SHOW GRANTS does not quote role names properly for DEFAULT ROLE 2021-07-09 08:25:54 +02:00
show_grants.test
show_grants_replicated.result MDEV-26080: SHOW GRANTS does not quote role names properly for DEFAULT ROLE 2021-07-09 08:25:54 +02:00
show_grants_replicated.test