Bug #34787 TRIGGER definition should support SQL SECURITY = definer|invoker
| Submitted: | 24 Feb 2008 13:15 | Modified: | 15 Jan 2014 15:47 |
|---|---|---|---|
| Reporter: | Peter Laursen (Basic Quality Contributor) | Email Updates: | |
| Status: | Verified | Impact on me: | |
| Category: | MySQL Server: Stored Routines | Severity: | S4 (Feature request) |
| Version: | 5.1.23 | OS: | Any |
| Assigned to: | CPU Architecture: | Any | |
| Tags: | qc | ||
[24 Feb 2008 13:15]
Peter Laursen
[24 Feb 2008 13:29]
Peter Laursen
first line should read "TRIGGER privilege is sufficient to SET global VARIABLES".
[24 Feb 2008 13:37]
Peter Laursen
changed from 'triggers' to 'privileges' sub-category.
[27 Feb 2008 18:13]
Sveta Smirnova
Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://dev.mysql.com/doc/ and the instructions on how to report a bug at http://bugs.mysql.com/how-to-report.php Please read about what TRIGGER priviledge is for at http://dev.mysql.com/doc/refman/5.1/en/privileges-provided.html Also please not you created TRIGGER with definer root who has all necessary privileges to set global variables: select DEFINER from information_schema.triggers where TRIGGER_SCHEMA='test' and TRIGGER_NAME='tester'; DEFINER root@localhost
[27 Feb 2008 18:43]
Peter Laursen
I reopen and change category to 'triggers' and set severity "S4" (feature request) I created the TRIGGER as root but executed as a non-privileged user (2nd time) Feature request is: TRIGGER definition should support SQL SECURITY = definer|invoker to avoid this silly and dangorous situations! Also synopsis was changed!
[27 Feb 2008 18:52]
Sveta Smirnova
Thank you for the reasonable feature request.
[15 Jan 2014 15:37]
Ståle Deraas
This feature req got new status to verified (for book keeping).
[15 Jan 2014 15:47]
Peter Laursen
WOW .. after 6 years. I'll have to admit that I completely forgot this!
[27 Aug 2020 20:47]
Derek Price
And 6 more! This just bit me because the user who originally created the trigger got deleted. I usually use SQL SECURITY INVOKER to avoid that becoming a problem with VIEWS, FUNCTIONS, and stored procedures, so I just expected it to work here.
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.042 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders.
It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.