[MDEV-4951] drop user leaves privileges Created: 2013-08-26 Updated: 2013-08-29 Resolved: 2013-08-29 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | 5.5.32 |
| Fix Version/s: | 5.5.33 |
| Type: | Bug | Priority: | Major |
| Reporter: | Sergei Golubchik | Assignee: | Sergei Golubchik |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
It looks like in certain cases DROP USER does not properly revokes all privileges before dropping the user. Test:
it will fail, because two privileges of the user dan@localhost (that was created and dropped in main.view_grant) were not revoked. Or, perhaps, information_schema.table_privileges is wrong and shows privileges that aren't there. |
| Comments |
| Comment by Sergei Golubchik [ 2013-08-27 ] |
|
MySQL BUG#13864642 |
| Comment by Elena Stepanova [ 2013-08-28 ] |
|
MTR test case for RENAME: create database db; |
| Comment by Sergei Golubchik [ 2013-08-28 ] |
|
this test case didn't work for me. That is, it passed on vanilla 5.5. |
| Comment by Elena Stepanova [ 2013-08-28 ] |
|
Here is what it produces for me (on 5.5 revno 3862) worker[1] Using MTR_BUILD_THREAD 300, with reserved ports 16000..16019 Also tried on the release binaries (5.5.32), got the same as above. So, if it's different for you, it means it's not deterministic between the machines/systems (rather than builds)... |
| Comment by Elena Stepanova [ 2013-08-28 ] |
|
Here is another one, just in case you want to check why it fails in some environments but not others (I can set it up on perro, it fails there too): CREATE TABLE IF NOT EXISTS `t1` (`col1` INT, `col2` INT); It returns SELECT * FROM INFORMATION_SCHEMA.TABLE_PRIVILEGES WHERE GRANTEE = "'user1'@'localhost'"; But it probably makes no sense to add it to the MTR suite if it's not deterministic. |
| Comment by Sergei Golubchik [ 2013-08-28 ] |
|
weird. now the first one (with inga) worked. the second — did not. |