[MDEV-17943] Unfortunate error code/message upon SET DEFAULT ROLE FOR Created: 2018-12-08  Updated: 2024-01-02

Status: Stalled
Project: MariaDB Server
Component/s: Authentication and Privilege System
Affects Version/s: 10.1, 10.2, 10.3, 10.4
Fix Version/s: 10.4

Type: Bug Priority: Minor
Reporter: Elena Stepanova Assignee: Rucha Deodhar
Resolution: Unresolved Votes: 0
Labels: None


 Description   

SET DEFAULT ROLE FOR for a non-existing user produces ER_INVALID_CURRENT_USER:

MariaDB [test]> set default role none for foo;
ERROR 1960 (0L000): The current user is invalid

It doesn't really make sense, because the current user is fine, it's the target user that's wrong.



 Comments   
Comment by Rucha Deodhar [ 2023-12-18 ]

Patch: https://github.com/MariaDB/server/commit/0933ae14741f3c54dd2c43278a9f3c582e53d42f

Comment by Oleksandr Byelkin [ 2024-01-02 ]

Please add test case to the commit.

Generated at Thu Feb 08 08:40:19 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.