mariadb/mysql-test/suite/roles
Vicențiu Ciorbaru b9418ed333 MDEV-13676: Field "create Procedure" is NULL, even if the the user has role which is the definer. (SHOW CREATE PROCEDURE)
During show create procedure we ommited to check the current role, if it
is the actual definer of the procedure. In addition, we should support
indirectly granted roles to the current role. Implemented a recursive
lookup to search the tree of grants if the rolename is present.

SQL Standard 2016, Part 5 Section 53 View I_S.ROUTINES selects
ROUTINE_BODY and its WHERE clause says that the GRANTEE must be
either PUBLIC, or CURRENT_USER or in the ENABLED_ROLES.
2017-10-11 12:15:52 +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-11533: Roles with trailing white spaces are not cleared correctly 2016-12-10 22:23:25 +02:00
create_and_drop_role.test MDEV-11533: Roles with trailing white spaces are not cleared correctly 2016-12-10 22:23:25 +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
current_role_view-12666.result MDEV-12666: CURRENT_ROLE() and DATABASE() does not work in a view 2017-06-15 19:20:35 +03:00
current_role_view-12666.test MDEV-12666: CURRENT_ROLE() and DATABASE() does not work in a view 2017-06-15 19:20:35 +03: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 MDEV-13676: Field "create Procedure" is NULL, even if the the user has role which is the definer. (SHOW CREATE PROCEDURE) 2017-10-11 12:15:52 +03:00
definer.test MDEV-13676: Field "create Procedure" is NULL, even if the the user has role which is the definer. (SHOW CREATE PROCEDURE) 2017-10-11 12:15:52 +03: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
role_case_sensitive-10744.result MDEV-10744: Roles are not fully case sensitive 2016-12-01 15:01:33 +01:00
role_case_sensitive-10744.test MDEV-10744: Roles are not fully case sensitive 2016-12-01 15:01:33 +01: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 include/master-slave.inc must always be included last 2017-09-20 18:17:50 +02: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_create_database-10463.result MDEV-10463: Granted as a whole to roles, databases are not show in SHOW DATABASES 2017-06-15 19:20:35 +03:00
show_create_database-10463.test MDEV-10463: Granted as a whole to roles, databases are not show in SHOW DATABASES 2017-06-15 19:20:35 +03: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