Details
-
Bug
-
Status: Stalled (View Workflow)
-
Critical
-
Resolution: Unresolved
-
5.5(EOL), 10.1(EOL), 10.2(EOL), 10.3(EOL), 10.4(EOL), 10.5, 10.6, 10.7(EOL)
-
None
Description
|
create user test@localhost;
|
grant select on test.* to test@localhost;
|
|
create table t1 (a int);
|
create definer=test@localhost sql security definer view v1 as select * from t1;
|
|
--echo # check that ot works without view
|
--eval select * INTO OUTFILE '$MYSQL_TMP_DIR/test_out_txt' from t1;
|
--echo # check that ot works without file
|
select * from v1;
|
|
--echo # rights for file should be taken from current user not view
|
--eval select * INTO OUTFILE '$MYSQL_TMP_DIR/test_out_txt' from (select count(*) from v1) as dv1;
|
--echo # rights for file should be taken from current user not view
|
--eval select * INTO OUTFILE '$MYSQL_TMP_DIR/test_out_txt' from (select * from v1) as dv1;
|
--eval select * INTO OUTFILE '$MYSQL_TMP_DIR/test_out_txt' from v1;
|
|
--remove_file $MYSQL_TMP_DIR/test_out_txt
|
drop view v1;
|
drop table t1;
|
drop user test@localhost;
|
Attachments
Issue Links
- is duplicated by
-
MDEV-28179 OUTFILE from mysql.user lead to an ERROR 1356 (HY000): View 'mysql.user' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
-
- Closed
-
- relates to
-
MDEV-22378 load_data() always takes invoker FILE privileges in view
-
- Open
-
Activity
Field | Original Value | New Value |
---|---|---|
Assignee | Oleksandr Byelkin [ sanja ] |
Component/s | Views [ 10111 ] | |
Fix Version/s | 5.5 [ 15800 ] | |
Fix Version/s | 10.1 [ 16100 ] | |
Fix Version/s | 10.2 [ 14601 ] | |
Fix Version/s | 10.3 [ 22126 ] | |
Fix Version/s | 10.4 [ 22408 ] | |
Fix Version/s | 10.5 [ 23123 ] |
Link |
This issue relates to |
Issue Type | Task [ 3 ] | Bug [ 1 ] |
Affects Version/s | 5.5 [ 15800 ] | |
Affects Version/s | 10.1 [ 16100 ] | |
Affects Version/s | 10.2 [ 14601 ] | |
Affects Version/s | 10.3 [ 22126 ] | |
Affects Version/s | 10.4 [ 22408 ] | |
Affects Version/s | 10.5 [ 23123 ] |
Status | Open [ 1 ] | In Progress [ 3 ] |
Link | This issue relates to MDEV-22378 [ MDEV-22378 ] |
Status | In Progress [ 3 ] | Stalled [ 10000 ] |
Assignee | Oleksandr Byelkin [ sanja ] | Sergei Golubchik [ serg ] |
Status | Stalled [ 10000 ] | In Review [ 10002 ] |
Priority | Major [ 3 ] | Critical [ 2 ] |
Link |
This issue blocks |
Link |
This issue relates to |
Status | In Review [ 10002 ] | Stalled [ 10000 ] |
Assignee | Sergei Golubchik [ serg ] | Oleksandr Byelkin [ sanja ] |
Link |
This issue blocks |
Fix Version/s | 5.5 [ 15800 ] |
Fix Version/s | 10.1 [ 16100 ] |
Workflow | MariaDB v3 [ 107792 ] | MariaDB v4 [ 143637 ] |
Affects Version/s | 10.6 [ 24028 ] | |
Affects Version/s | 10.7 [ 24805 ] |
Fix Version/s | 10.6 [ 24028 ] | |
Fix Version/s | 10.7 [ 24805 ] |
Link |
This issue is duplicated by |
Fix Version/s | 10.2 [ 14601 ] |
Fix Version/s | 10.7 [ 24805 ] |
Fix Version/s | 10.3 [ 22126 ] |
Fix Version/s | 10.4 [ 22408 ] |