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
Adjust privileges fails if database name contains underscores #11834
Comments
|
Hi @foundationphp , could you please test if this patch https://github.com/devenbansod/phpmyadmin/commit/95dd3979817fdc70eafaae7d246cd22ab7249dab.patch works for you ? |
|
Fixed with #11902 . |
Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
|
Either this is not fixed, or https://demo.phpmyadmin.net/ is several years out of date. The issue is currently reproducible there |
|
I also see this behavior (testing with master), except the second part about copying it to Reopening for reassessment. |
|
Hi @iifawzi |
|
Hi @williamdes, I'd love to work on it, I just wanna understand the issue correctly, I'm not able to re-produce it. Whenever the db is renamed, the user privileges are re-created/added in case of renaming/coping. The only part that i'm not able to re-produce is this
I think this's correct, if the db is renamed from |
|
I just tried and also could not reproduce this issue on 5.1 Probably the fixes you made @iifawzi solved this issue too I used the procedure in the first comment, if anybody can also confirm, for me this is fixed What is expected:
Escaped special chars are expected to stay escaped and non escaped to say non escaped |
|
I can still reproduce on the current demo server which is version 5.2, with the steps in the original report. I stop at step 3 which is enough to see that the bug exists. Note that the first database needs to have an underscore in its name in order to reproduce the issue (just like the suggested "my_test"). No underscore, no issue. |
|
Ahh, thank you @php4fan I was granting permissions from the Reproduced on master, and QA_5_1, I will work on it tonight. |
Signed-off-by: William Desportes <williamdes@wdes.fr>
|
The fix will be part of 5.1.2, and is already part of the latest 5.1 version in development (phpMyAdmin 5.1+snapshot) |

Using phpMyAdmin 4.5.3.1, MariaDB 10.1.9, PHP 7.0.1.
If database-specific privileges are assigned to a user account on a database that has underscores in its name, Adjust privileges fails when copying or renaming a database. However, if the original database name does not contain underscores, Adjust privileges does work when copying or renaming to a database with underscores in its name. Further changes are also possible because the privilege type is changed from "database-specific" to "wildcard".
The text was updated successfully, but these errors were encountered: