Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v4.0.11 upgrade to v5.0.0, user privileges changed #23387

Closed
seiya-annie opened this issue Mar 18, 2021 · 2 comments · Fixed by #23403
Closed

v4.0.11 upgrade to v5.0.0, user privileges changed #23387

seiya-annie opened this issue Mar 18, 2021 · 2 comments · Fixed by #23403
Assignees
Labels
severity/major sig/sql-infra SIG: SQL Infra type/bug The issue is confirmed as a bug.
Milestone

Comments

@seiya-annie
Copy link

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

  1. create user quatest with create privi on v4.0.11
    MySQL [(none)]> create user qatest;grant Create on . to qatest;
    Query OK, 0 rows affected (0.03 sec)
  2. upgrade to v5.0.0
  3. check user privileges

2. What did you expect to see? (Required)

MySQL [(none)]> show grants for qatest;
+-------------------------------------+
| Grants for qatest@% |
+-------------------------------------+
| GRANT Create ON . TO 'qatest'@'%' |
+-------------------------------------+
1 row in set (0.00 sec)

3. What did you see instead (Required)

MySQL [(none)]> show grants for qatest;
+--------------------------------------------------------------------------+
| Grants for qatest@% |
+--------------------------------------------------------------------------+
| GRANT Create,REPLICATION CLIENT,REPLICATION SLAVE ON . TO 'qatest'@'%' |
+--------------------------------------------------------------------------+
1 row in set (0.00 sec)

4. What is your TiDB version? (Required)

MySQL [test]> SELECT tidb_version() ;
+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| tidb_version() |
+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Release Version: v5.0.0
Edition: Community
Git Commit Hash: 46f5f21
Git Branch: heads/refs/tags/v5.0.0
UTC Build Time: 2021-03-15 06:21:59
GoVersion: go1.13
Race Enabled: false
TiKV Min Version: v3.0.0-60965b006877ca7234adaced7890d7b029ed1306
Check Table Before Drop: false |
+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
1 row in set (0.00 sec)

MySQL [test]>

@seiya-annie seiya-annie added type/bug The issue is confirmed as a bug. severity/major labels Mar 18, 2021
@tiancaiamao tiancaiamao self-assigned this Mar 18, 2021
tiancaiamao added a commit to tiancaiamao/tidb that referenced this issue Mar 18, 2021
@ChenPeng2013 ChenPeng2013 added the sig/execution SIG execution label Mar 18, 2021
@XuHuaiyu XuHuaiyu added sig/sql-infra SIG: SQL Infra and removed sig/execution SIG execution labels Mar 19, 2021
@jebter jebter added this to the v5.0.0 ga milestone Mar 22, 2021
@zimulala
Copy link
Contributor

PTAL @bb7133

@ti-srebot
Copy link
Contributor

ti-srebot commented Mar 25, 2021

Please edit this comment or add a new comment to complete the following information

Bug

Note: Make Sure that 'component', and 'severity' labels are added
Example for how to fill out the template: #20100

1. Root Cause Analysis (RCA) (optional)

The connection verification function does not handle the malformed input well, when the input data is in valid, tidb panic.

2. Symptom (optional)

See the goroutine panic stack and check where it happen.

3. All Trigger Conditions (optional)

Still unclear on which situration the user input is invalid.

4. Workaround (optional)

NA

5. Affected versions

[v4.0.1:v4.0.12]

6. Fixed versions

v4.0.13, v5.0GA

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
severity/major sig/sql-infra SIG: SQL Infra type/bug The issue is confirmed as a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants