Skip to content

No Option to enter TABLE specific permissions when database name contains _ (underscore) #16477

@Schwuuuuup

Description

@Schwuuuuup

Describe the bug

I was used to grant permissions for single tables instead of permissions for whole databases. For this I opened the useraccount for editing, and klicked on the button "Database" and then on "Table" to select specific Tables for access.
The button "Table" is missing for all Databases with names containing an underscore.

To Reproduce

  1. Rename a database to have its name contain underscores like "test_with_underscore"
  2. Try to grand table specific permissions:
    User accounts->edit permissions->select "Database" button -> see that there does not appear a button "Table"

See Screenshots

Expected behavior

An underscore in the name should not influence what permissions can be granted.
sie examlpes in the screenshots for "testwithoutunderscore"

Screenshots

selectdatabase_without_underscore
selectdatabase_with_underscore
withoutunderscore_button_is_there
with_underscore_button_is_missing

Server configuration

  • Operating system: Red hat Enterprise Linux 7
  • Web server: Apache httpd-2.4.6-95.el7.x86_64
  • Database version: MariaDB-server-10.4.16-1.el7.centos.x86_64
  • PHP version: PHP 7.3.23 (cli) (built: Oct 1 2020 20:38:17) ( NTS )
  • phpMyAdmin version: 5.0.4

Client configuration

  • Browser: Vivaldi
  • Operating system: MX-Linux

Additional context

The Problem must have showed up some time in the past. I guess it was about half a year ago when I last used this feature and back then it worked fine.

Metadata

Metadata

Assignees

Labels

BugA problem or regression with an existing featurehas-prAn issue that has a pull request pending that may fix this issue. The pull request may be incompletehelp wanted

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions