[MDEV-10366] Dropped user's sessions are not killed automatically Created: 2016-07-12 Updated: 2016-07-15 Resolved: 2016-07-15 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Authentication and Privilege System |
| Affects Version/s: | 10.1.13 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Minor |
| Reporter: | Robin Peiremans | Assignee: | Unassigned |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | None | ||
| Description |
|
MariaDB allows you to drop a user while that user has active sessions. When the user is dropped, it can continue querying like nothing ever happened, even after flushing privileges:
I would expect user_to_be_dropped@localhost to get an error when running another query after the flush privileges. Is the above expected behaviour (meaning my expectations are wrong) or is this an actual bug? |
| Comments |
| Comment by Elena Stepanova [ 2016-07-15 ] |
|
Yes, the above is the expected and documented behavior, both in MariaDB and MySQL:
http://dev.mysql.com/doc/refman/5.7/en/drop-user.html
|