Details
-
Type:
Bug
-
Status: Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: 10.1
-
Fix Version/s: 10.1
-
Component/s: Admin statements
-
Labels:None
Description
Currently if a role is set as default for a user, and then revoked or dropped, the default setting is preserved; and if the role is later re-created and/or re-granted, it immediately becomes default again. I assume it's because the value is kept in mysql.user.
It's a bit counter-intuitive, not how things are usually done in MySQL when stuff gets dropped. However, it's nor really critical, so if it works so "by design", I don't insist on changing it, please just document it explicitly in the KB.
Gliffy Diagrams
Attachments
Activity
- All
- Comments
- Work Log
- History
- Activity
- Transitions
Yes, it was intentional, with the reasoning that only an explicit user action should change his own default role. So, when somebody else revokes something from someone it doesn't change user's personal account preferences. Of course, the role won't longer be automatically enabled, but it will be still remembered as a default.
But this behavior can be changed, so if you want to argue that a role revocation should automatically unset user's default role — please do.