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

Notice @ Relations View #15591

Closed
OlafvdSpek opened this issue Nov 24, 2019 · 7 comments
Closed

Notice @ Relations View #15591

OlafvdSpek opened this issue Nov 24, 2019 · 7 comments
Assignees
Labels
Bug A problem or regression with an existing feature
Projects
Milestone

Comments

@OlafvdSpek
Copy link

V: 5.0+snapshot

Notice in ./libraries/classes/Controllers/Table/RelationController.php#203
 Undefined index: foreign_keys_data

Backtrace

./tbl_relation.php#90: PhpMyAdmin\Controllers\Table\RelationController->indexAction()
@williamdes williamdes added the Bug A problem or regression with an existing feature label Nov 24, 2019
@williamdes williamdes self-assigned this Nov 24, 2019
@williamdes
Copy link
Member

@OlafvdSpek can you please send the table structure so I can understand what I am fixing ?

@williamdes
Copy link
Member

And if It could affect 4.9

@OlafvdSpek
Copy link
Author

OlafvdSpek commented Nov 24, 2019

CREATE TABLE `pma__bookmark` (
 `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
 `dbase` varchar(255) COLLATE utf8_bin NOT NULL DEFAULT '',
 `user` varchar(255) COLLATE utf8_bin NOT NULL DEFAULT '',
 `label` varchar(255) CHARACTER SET utf8 NOT NULL DEFAULT '',
 `query` text COLLATE utf8_bin NOT NULL,
 PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Bookmarks'

@williamdes
Copy link
Member

Thank you, reproduced !
I will use this issue to fix #15590 ;)

@williamdes williamdes added this to Needs triage in issues via automation Nov 24, 2019
@williamdes williamdes moved this from Needs triage to High priority in issues Nov 24, 2019
@williamdes
Copy link
Member

Param Value
Error Type Notice
Error Message Undefined index: foreign_keys_data
Exception Type php
phpMyAdmin version 5.0.0-rc1
Incident count 1
Link Report#61383

This comment is posted automatically by phpMyAdmin's error-reporting-server.

@williamdes
Copy link
Member

Param Value
Error Type Notice
Error Message Undefined index: foreign_keys_data
Exception Type php
phpMyAdmin version 4.9.1
Incident count 2
Link Report#60888

This comment is posted automatically by phpMyAdmin's error-reporting-server.

@williamdes williamdes added this to the 4.9.3 milestone Nov 24, 2019
@williamdes
Copy link
Member

williamdes commented Nov 24, 2019

This issue occurs on 4.9 when user has column level privileges and tries to see the relations.
Similar to #15228

williamdes added a commit that referenced this issue Nov 24, 2019
Signed-off-by: William Desportes <williamdes@wdes.fr>
@williamdes williamdes moved this from High priority to Closed in issues Nov 24, 2019
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug A problem or regression with an existing feature
Projects
issues
  
Closed
Development

No branches or pull requests

2 participants