-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Plugin should not require MySQL SUPER privileges to execute #10
Comments
Can you check if the database user has full rights on the database? In order to execute apparanetly it requires Super privileges. I am in the process (slowly) of rewriting in order to avoid these errors and to make it fully compliant. |
Same issue here - not really sure many of us will be willing to grant SU permissions on this given what it could open databases up to. Look forward to a fixed release... |
+1 - Requiring super privileges on a database is a ridiculous (and frankly, suspicious) implementation decision |
The SUPER privileges are required to set sql_mode (to clear ONLY_FULL_GROUP_BY mode). This mode rejects queries where non-aggregated columns are expected, and is enabled by default in MySQL 5.7 and later. The SQL query retrieving the data in the Rankings page needs to be updated so it can be executed in ONLY_FULL_GROUP_BY mode. This requires declaring all unique columns in the GROUP BY clause. |
The SQL query retrieving rankings from the database was modified so it is no longer necessary to set sql_mode, which requires SUPER privileges. All columns referenced in the SELECT statement were added to the GROUP BY clause. Fixes mantisbt-plugins#10
The SQL query retrieving rankings from the database was modified so it is no longer necessary to set sql_mode, which requires SUPER privileges. All columns referenced in the SELECT statement were added to the GROUP BY clause. Fixes mantisbt-plugins#10
Using the updated version of the plugin gives me the following error when trying to view the issue ranking page:
The text was updated successfully, but these errors were encountered: