Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
10.5.12
-
None
Description
The error message for SET DEFAULT ROLE refers to the user performing the operation instead of the target user. This is misleading as the user giving the grant doesn't require the grant itself, only the target user.
Here's an example (and a test case) that reproduces the problem:
MariaDB [test]> create role test_role;
|
Query OK, 0 rows affected (0.000 sec)
|
|
MariaDB [test]> create user test_user;
|
Query OK, 0 rows affected (0.000 sec)
|
|
MariaDB [test]> set default role test_role for test_user;
|
ERROR 1959 (OP000): User `maxuser`@`127.0.0.1` has not been granted role `test_role`
|
MariaDB [test]> grant test_role to maxuser@127.0.0.1;
|
Query OK, 0 rows affected (0.000 sec)
|
|
MariaDB [test]> set default role test_role for test_user;
|
ERROR 1959 (OP000): User `maxuser`@`127.0.0.1` has not been granted role `test_role`
|
MariaDB [test]> grant test_role to test_user;
|
Query OK, 0 rows affected (0.000 sec)
|
|
MariaDB [test]> set default role test_role for test_user;
|
Query OK, 0 rows affected (0.000 sec)
|
Attachments
Issue Links
- duplicates
-
MDEV-27478 Misleading error message for SET DEFAULT ROLE
-
- Closed
-
- relates to
-
MDEV-22312 Bad error message for SET DEFAULT ROLE when user account is not granted the role
-
- Closed
-
-
MDEV-26081 set role crashes when a hostname cannot be resolved
-
- Closed
-
-
MDEV-6967 Wrong error code/message ER_INVALID_ROLE on setting a default role for non-existing user
-
- Open
-
- links to
Activity
Fix Version/s | 10.5 [ 23123 ] | |
Fix Version/s | 10.6 [ 24028 ] |
Assignee | Anel Husakovic [ anel ] |
Link |
This issue relates to |
Link |
This issue relates to |
Status | Open [ 1 ] | Confirmed [ 10101 ] |
Assignee | Anel Husakovic [ anel ] | Sergei Golubchik [ serg ] |
Status | Confirmed [ 10101 ] | In Review [ 10002 ] |
Workflow | MariaDB v3 [ 126462 ] | MariaDB v4 [ 143805 ] |
Assignee | Sergei Golubchik [ serg ] | Anel Husakovic [ anel ] |
Status | In Review [ 10002 ] | Stalled [ 10000 ] |
Link |
This issue duplicates |
Status | Stalled [ 10000 ] | In Testing [ 10301 ] |
Status | In Testing [ 10301 ] | Stalled [ 10000 ] |
Assignee | Anel Husakovic [ anel ] | Sergei Golubchik [ serg ] |
Status | Stalled [ 10000 ] | In Review [ 10002 ] |
Assignee | Sergei Golubchik [ serg ] | Anel Husakovic [ anel ] |
Status | In Review [ 10002 ] | Stalled [ 10000 ] |
Assignee | Anel Husakovic [ anel ] | Sergei Golubchik [ serg ] |
Status | Stalled [ 10000 ] | In Review [ 10002 ] |
Assignee | Sergei Golubchik [ serg ] | Anel Husakovic [ anel ] |
Status | In Review [ 10002 ] | Stalled [ 10000 ] |
Status | Stalled [ 10000 ] | Open [ 1 ] |
Remote Link | This issue links to "PR 2362 (Web Link)" [ 34674 ] |
Status | Open [ 1 ] | Confirmed [ 10101 ] |
Assignee | Anel Husakovic [ anel ] | Sergei Golubchik [ serg ] |
Status | Confirmed [ 10101 ] | In Review [ 10002 ] |
Assignee | Sergei Golubchik [ serg ] | Anel Husakovic [ anel ] |
Status | In Review [ 10002 ] | Stalled [ 10000 ] |
Status | Stalled [ 10000 ] | In Progress [ 3 ] |
Assignee | Anel Husakovic [ anel ] | Sergei Golubchik [ serg ] |
Status | In Progress [ 3 ] | In Review [ 10002 ] |
Assignee | Sergei Golubchik [ serg ] | Anel Husakovic [ anel ] |
Status | In Review [ 10002 ] | Stalled [ 10000 ] |
Assignee | Anel Husakovic [ anel ] | Sergei Golubchik [ serg ] |
Status | Stalled [ 10000 ] | In Review [ 10002 ] |
Assignee | Sergei Golubchik [ serg ] | Anel Husakovic [ anel ] |
Status | In Review [ 10002 ] | Stalled [ 10000 ] |
Component/s | Authentication and Privilege System [ 13101 ] | |
Fix Version/s | 10.5.23 [ 29012 ] | |
Fix Version/s | 10.6.16 [ 29014 ] | |
Fix Version/s | 10.10.7 [ 29018 ] | |
Fix Version/s | 11.0.4 [ 29021 ] | |
Fix Version/s | 11.1.3 [ 29023 ] | |
Fix Version/s | 11.2.2 [ 29035 ] | |
Fix Version/s | 11.3.1 [ 29416 ] | |
Fix Version/s | 10.5 [ 23123 ] | |
Fix Version/s | 10.6 [ 24028 ] | |
Resolution | Fixed [ 1 ] | |
Status | Stalled [ 10000 ] | Closed [ 6 ] |
Fix Version/s | 10.11.6 [ 29020 ] |
Fix Version/s | 10.5.24 [ 29517 ] | |
Fix Version/s | 10.6.17 [ 29518 ] | |
Fix Version/s | 10.11.7 [ 29519 ] | |
Fix Version/s | 11.0.5 [ 29520 ] | |
Fix Version/s | 11.1.4 [ 29024 ] | |
Fix Version/s | 11.2.3 [ 29521 ] | |
Fix Version/s | 11.3.2 [ 29522 ] | |
Fix Version/s | 10.5.23 [ 29012 ] | |
Fix Version/s | 10.6.16 [ 29014 ] | |
Fix Version/s | 10.10.7 [ 29018 ] | |
Fix Version/s | 10.11.6 [ 29020 ] | |
Fix Version/s | 11.0.4 [ 29021 ] | |
Fix Version/s | 11.1.3 [ 29023 ] | |
Fix Version/s | 11.2.2 [ 29035 ] | |
Fix Version/s | 11.3.1 [ 29416 ] |