mariadb/mysql-test/suite/roles
Vicențiu Ciorbaru b449612907 MDEV-8638: REVOKE ALL PRIVILEGES, GRANT OPTION FROM CURRENT_ROLE breaks replication
Fix the replication failure caused by incorect initialization of
THD::invoker_host && THD::invoker_user.

Breakdown of the failure is this:
Query_log_event::host and Query_log_event::user can have their
LEX_STRING's set to length 0, but the actual str member points to
garbage. Code afterwards copies Query_log_event::host and user to
THD::invoker_host and THD::invoker_user.

Calling code for these members expects both members to be initialized.
Eg. the str member be a NULL terminated string and length have
appropriate size.
2016-06-22 16:41:38 +03:00
..
acl_load_mutex-5170.result MDEV-5170 Assertion `(&(&acl_cache->lock)->m_mutex)->count > 0 && pthread_equal(pthread_self(), (&(&acl_cache->lock)->m_mutex)->thread)' fails after restarting server with a pre-created role grants 2013-10-23 09:49:47 -07:00
acl_load_mutex-5170.test MDEV-5170 Assertion `(&(&acl_cache->lock)->m_mutex)->count > 0 && pthread_equal(pthread_self(), (&(&acl_cache->lock)->m_mutex)->thread)' fails after restarting server with a pre-created role grants 2013-10-23 09:49:47 -07:00
admin.result move role tests to a dedicated suite 2013-10-21 19:57:25 -07:00
admin.test move role tests to a dedicated suite 2013-10-21 19:57:25 -07:00
create_and_drop_current.result remove hostname-dependent part of the test 2013-11-03 13:12:40 +01:00
create_and_drop_current.test remove hostname-dependent part of the test 2013-11-03 13:12:40 +01:00
create_and_drop_role.result MDEV-8609 Server crashes in is_invalid_role_name on reloading ACL with a blank role name 2015-10-22 11:58:54 +02:00
create_and_drop_role.test MDEV-8609 Server crashes in is_invalid_role_name on reloading ACL with a blank role name 2015-10-22 11:58:54 +02:00
create_and_drop_role_invalid_user_table.result misc fixes for buildbot 2013-11-07 14:30:21 +01:00
create_and_drop_role_invalid_user_table.test misc fixes for buildbot 2013-11-07 14:30:21 +01:00
create_and_grant_role.result move role tests to a dedicated suite 2013-10-21 19:57:25 -07:00
create_and_grant_role.test move role tests to a dedicated suite 2013-10-21 19:57:25 -07:00
default_create_user_not_role.result move role tests to a dedicated suite 2013-10-21 19:57:25 -07:00
default_create_user_not_role.test move role tests to a dedicated suite 2013-10-21 19:57:25 -07:00
definer.result move role tests to a dedicated suite 2013-10-21 19:57:25 -07:00
definer.test move role tests to a dedicated suite 2013-10-21 19:57:25 -07:00
drop_current_user-5176.result MDEV-5176 Server crashes in fill_schema_applicable_roles on select from APPLICABLE_ROLES after a suicide 2013-10-23 09:54:10 -07:00
drop_current_user-5176.test post-review cleanup 2013-10-27 08:19:21 +01:00
drop_routines.result remove inherited routine grants when a routine is dropped 2013-10-26 15:52:29 +02:00
drop_routines.test remove inherited routine grants when a routine is dropped 2013-10-26 15:52:29 +02:00
grant-5771.result MDEV-5771 Privileges acquired via roles depend on the order of granting 2014-03-19 09:57:45 +01:00
grant-5771.test MDEV-5771 Privileges acquired via roles depend on the order of granting 2014-03-19 09:57:45 +01:00
grant_empty.result MDEV-5668 Assertion `granted_role->is_role()' fails on granting role with empty name 2014-03-01 11:55:31 +01:00
grant_empty.test MDEV-5668 Assertion `granted_role->is_role()' fails on granting role with empty name 2014-03-01 11:55:31 +01:00
grant_proxy-5526.result MDEV-5526 Assertion `proxied_user->host.length' fails on GRANT PROXY ON <role> 2014-01-29 00:05:24 +01:00
grant_proxy-5526.test fixes: 2014-02-02 10:09:05 +01:00
grant_revoke_current.result grant/revoke ... to/from current_role 2013-11-02 16:26:35 +01:00
grant_revoke_current.test grant/revoke ... to/from current_role 2013-11-02 16:26:35 +01:00
grant_role_auto_create_user.result minor cleanup 2013-12-25 21:21:47 +01:00
grant_role_auto_create_user.test minor cleanup 2013-12-25 21:21:47 +01:00
ip-6401.result MDEV-6401 SET ROLE returning ERROR 1959 Invalid role specification for valid role 2014-06-27 09:32:55 +02:00
ip-6401.test add comment to a test 2015-10-22 10:27:36 +02:00
none_public.result 10.0-base merge (roles) 2013-10-29 15:08:44 +01:00
none_public.test move role tests to a dedicated suite 2013-10-21 19:57:25 -07:00
password.result MDEV-5526 Assertion `proxied_user->host.length' fails on GRANT PROXY ON <role> 2014-01-29 00:05:24 +01:00
password.test MDEV-5526 Assertion `proxied_user->host.length' fails on GRANT PROXY ON <role> 2014-01-29 00:05:24 +01:00
ps.result MDEV-5521 SET ROLE as prepared statement crashes the server 2014-01-28 21:02:17 +01:00
ps.test MDEV-5521 SET ROLE as prepared statement crashes the server 2014-01-28 21:02:17 +01:00
rebuild_role_grants.result MDEV-8614 Assertion `status == 0' failed in add_role_user_mapping_action on RENAME USER 2015-10-22 13:09:38 +02:00
rebuild_role_grants.test MDEV-8614 Assertion `status == 0' failed in add_role_user_mapping_action on RENAME USER 2015-10-22 13:09:38 +02:00
recursive.inc move role tests to a dedicated suite 2013-10-21 19:57:25 -07:00
recursive.result move role tests to a dedicated suite 2013-10-21 19:57:25 -07:00
recursive.test move role tests to a dedicated suite 2013-10-21 19:57:25 -07:00
recursive_dbug.result MDEV-5771 Privileges acquired via roles depend on the order of granting 2014-03-19 09:57:45 +01:00
recursive_dbug.test move role tests to a dedicated suite 2013-10-21 19:57:25 -07:00
rename_user.result move role tests to a dedicated suite 2013-10-21 19:57:25 -07:00
rename_user.test move role tests to a dedicated suite 2013-10-21 19:57:25 -07:00
revoke_all.result Implemented REVOKE ALL FROM for Roles and role grants. 2013-10-26 15:38:48 +02:00
revoke_all.test Implemented REVOKE ALL FROM for Roles and role grants. 2013-10-26 15:38:48 +02:00
rpl_definer.result move role tests to a dedicated suite 2013-10-21 19:57:25 -07:00
rpl_definer.test move role tests to a dedicated suite 2013-10-21 19:57:25 -07:00
rpl_grant_revoke_current_role-8638.result MDEV-8638: REVOKE ALL PRIVILEGES, GRANT OPTION FROM CURRENT_ROLE breaks replication 2016-06-22 16:41:38 +03:00
rpl_grant_revoke_current_role-8638.test MDEV-8638: REVOKE ALL PRIVILEGES, GRANT OPTION FROM CURRENT_ROLE breaks replication 2016-06-22 16:41:38 +03:00
set_and_drop.result reset the db privilege cache when revoking db priviges on DROP ROLE 2013-10-23 05:09:17 -07:00
set_and_drop.test MDEV-5172 safe_mutex: Trying to lock mutex when the mutex was already locked on using a role and I_S role tables 2013-10-23 03:28:41 -07:00
set_role-5232.result MDEV-5232 SET ROLE checks privileges differently from check_access() 2013-11-04 13:37:39 +01:00
set_role-5232.test MDEV-5232 SET ROLE checks privileges differently from check_access() 2013-11-04 13:37:39 +01:00
set_role-9614.result [MDEV-9614] Roles and Users longer than 6 characters 2016-06-22 16:41:38 +03:00
set_role-9614.test [MDEV-9614] Roles and Users longer than 6 characters 2016-06-22 16:41:38 +03:00
set_role-database-recursive.result move role tests to a dedicated suite 2013-10-21 19:57:25 -07:00
set_role-database-recursive.test move role tests to a dedicated suite 2013-10-21 19:57:25 -07:00
set_role-database-simple.result move role tests to a dedicated suite 2013-10-21 19:57:25 -07:00
set_role-database-simple.test move role tests to a dedicated suite 2013-10-21 19:57:25 -07:00
set_role-multiple-role.result move role tests to a dedicated suite 2013-10-21 19:57:25 -07:00
set_role-multiple-role.test move role tests to a dedicated suite 2013-10-21 19:57:25 -07:00
set_role-recursive.result 10.0-base merge (roles) 2013-10-29 15:08:44 +01:00
set_role-recursive.test move role tests to a dedicated suite 2013-10-21 19:57:25 -07:00
set_role-routine-simple.result move role tests to a dedicated suite 2013-10-21 19:57:25 -07:00
set_role-routine-simple.test move role tests to a dedicated suite 2013-10-21 19:57:25 -07:00
set_role-simple.result 10.0-base merge (roles) 2013-10-29 15:08:44 +01:00
set_role-simple.test move role tests to a dedicated suite 2013-10-21 19:57:25 -07:00
set_role-table-column-priv.result move role tests to a dedicated suite 2013-10-21 19:57:25 -07:00
set_role-table-column-priv.test move role tests to a dedicated suite 2013-10-21 19:57:25 -07:00
set_role-table-simple.result move role tests to a dedicated suite 2013-10-21 19:57:25 -07:00
set_role-table-simple.test move role tests to a dedicated suite 2013-10-21 19:57:25 -07:00
show_grants.result move role tests to a dedicated suite 2013-10-21 19:57:25 -07:00
show_grants.test move role tests to a dedicated suite 2013-10-21 19:57:25 -07:00