[MCOL-4378] Minor updates to MariaDB 10.2/10.3 seems to be adding a DEFAULT ROLE to the show grants command that is invalid. Created: 2020-11-04  Updated: 2021-01-14  Resolved: 2021-01-14

Status: Closed
Project: MariaDB ColumnStore
Component/s: N/A
Affects Version/s: None
Fix Version/s: N/A

Type: Bug Priority: Major
Reporter: cPanel Senior Tech's Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None

Attachments: PNG File Screen Shot 2020-11-04 at 1.37.00 AM.png    

 Description   

Possibly related to the recent change in: MDEV-22313

The default role is set to 0 (which is incorrect).

# mysql mysql -se "show grants for 'user1'@'localhost';"
Grants for user1@localhost
GRANT USAGE ON *.* TO `user1`@`localhost` IDENTIFIED BY PASSWORD '*REDACTED'
SET DEFAULT ROLE 0 FOR 'user1'@'localhost'

This causes database users to have invalid grants.

Reading access rights for the cPanel user “user1” from live data:
 MariaDB/MySQL …Invalid grant string: SET DEFAULT ROLE 0 FOR 'user1'@'localhost'

This breaks the cPanel "Databases" interface. (Screenshot attached) This does not occur for all servers that update to these versions and the cause of some of them breaking has yet to be determined.

Downgrading solves the issue. Additionally, another workaround that we have used is to set the default role to NONE.

MariaDB [(none)]> SET DEFAULT ROLE none FOR 'user1'@'localhost';
 Query OK, 0 rows affected (0.000 sec)



 Comments   
Comment by cPanel Senior Tech's [ 2020-11-04 ]

Apologies. This was accidentally opened up under the wrong section.

It should have been opened as MariaDB DEV - I created case: https://jira.mariadb.org/browse/MDEV-24122

This case (MCOL-4378) can be closed.

Generated at Thu Feb 08 02:49:54 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.