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

Revoke does not correctly populate the dynamic privilege name #24143

Closed
morgo opened this issue Apr 19, 2021 · 2 comments · Fixed by #23946
Closed

Revoke does not correctly populate the dynamic privilege name #24143

morgo opened this issue Apr 19, 2021 · 2 comments · Fixed by #23946
Assignees
Labels

Comments

@morgo
Copy link
Contributor

morgo commented Apr 19, 2021

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

With dynamic privileges the "grant option" is per privilege and not global. This is correctly handled in GRANT, but not in REVOKE.

If there a no-non dynamic privileges being revoked, then the global grant option should not be required:

vi = appendVisitInfo(vi, mysql.GrantPriv, dbName, tableName, "", nil)

This bug was introduced in the new feature in #22778 ; and does not affect any current released versions.

@morgo morgo added the type/bug The issue is confirmed as a bug. label Apr 19, 2021
@morgo morgo self-assigned this Apr 19, 2021
@cosven
Copy link
Contributor

cosven commented Apr 20, 2021

/severity moderate

@ti-srebot
Copy link
Contributor

ti-srebot commented Apr 26, 2021

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

Bug

Revoke did not work correctly with dynamic privileges.

1. Root Cause Analysis (RCA) (optional)

2. Symptom (optional)

3. All Trigger Conditions (optional)

4. Workaround (optional)

5. Affected versions

unreleased

6. Fixed versions

master

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants