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

Sql preview empty modal on tbl_relation #15010

Closed
williamdes opened this issue Mar 7, 2019 · 10 comments
Closed

Sql preview empty modal on tbl_relation #15010

williamdes opened this issue Mar 7, 2019 · 10 comments
Assignees
Labels
Bug A problem or regression with an existing feature good first issue has-pr An issue that has a pull request pending that may fix this issue. The pull request may be incomplete help wanted
Milestone

Comments

@williamdes
Copy link
Member

Use following links
Demo servers (root, no password)

tbl_relation.php?db=information_schema&table=INNODB_BUFFER_PAGE

Bug

  • Click on SQL PREVIEW button
  • Shows empty modal (this is the issue, why is it empty..)
@williamdes williamdes added the Bug A problem or regression with an existing feature label Mar 7, 2019
@williamdes
Copy link
Member Author

@MauricioFauth Can you please have a look why tbl_relation has a 500 on demo server ?

@kartik1000
Copy link
Contributor

@williamdes, Hey the above link is not working for me. Can you please check?

@williamdes
Copy link
Member Author

@kartik1000 Hello, see my comment above and use 4.x server please :)

@apoorvkhare07
Copy link
Contributor

@williamdes I am on it, if no one else is working on this ?

@williamdes
Copy link
Member Author

@apoorvkhare07 Great, go ahead !

@apoorvkhare07
Copy link
Contributor

@williamdes Is the demo server 4.8.x continuously in sync with branch QA_4_8 or its a release of some checkpoint of QA_4_8 ?

@williamdes
Copy link
Member Author

@apoorvkhare07 The demo server 4.8.x is in sync with commits on QA_4_8 :)
So you can open PRs against QA_4_8 since it is the branch for next release

@apoorvkhare07
Copy link
Contributor

@williamdes If server 4.8.x is continuously in sync with the QA_4_8 branch. Why is there some difference in the server and my local phpmyadmin version.

eg: Relational view button is not coming for all databases and only for those there is empty modal on Preview sql.

This is on the 4.8 server :
Screen Shot 2019-03-16 at 10 10 00 PM
Screen Shot 2019-03-16 at 10 14 33 PM

And this is on mylocal (directly using the URL as there is no button):
Screen Shot 2019-03-16 at 10 09 40 PM
Screen Shot 2019-03-16 at 10 10 03 PM

Is this issue because of my local database (permission or something else) ?

@williamdes
Copy link
Member Author

@apoorvkhare07 I do not know there is some reason but, for this issue it it quite typical to have those differences..
Mostly because of infrastructure configurations IMHO

Does this answer your question ?

@apoorvkhare07
Copy link
Contributor

@williamdes Not really. But I seem to have found the solution to this. It is giving empty modal because the previewSQL is being called from here
if (isset($_POST['destination_foreign_db'])) { $this->updateForForeignKeysAction(); }
and in some cases destination_foreign_db param is not set in the request so the modal is coming empty.

I think instead of sending empty destination_foreign_db param in request, we can safely remove the isset check and add checks at other places required. This will safely fix the issue.

apoorvkhare07 added a commit to apoorvkhare07/phpmyadmin that referenced this issue Mar 16, 2019
Signed-off-by: Apoorv Khare <apoorvkhare007@gmail.com>
apoorvkhare07 added a commit to apoorvkhare07/phpmyadmin that referenced this issue Mar 16, 2019
Signed-off-by: apoorv <apoorvkhare007@gmail.com>
apoorvkhare07 added a commit to apoorvkhare07/phpmyadmin that referenced this issue Mar 17, 2019
Signed-off-by: apoorv <apoorvkhare007@gmail.com>
@williamdes williamdes added the has-pr An issue that has a pull request pending that may fix this issue. The pull request may be incomplete label Mar 17, 2019
@williamdes williamdes self-assigned this Apr 1, 2019
@williamdes williamdes added this to the 4.8.6 milestone Apr 1, 2019
williamdes added a commit that referenced this issue Apr 1, 2019
Fixes: #15010
Pull-request: #15040
Signed-off-by: William Desportes <williamdes@wdes.fr>
williamdes added a commit that referenced this issue Apr 1, 2019
Signed-off-by: William Desportes <williamdes@wdes.fr>
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 21, 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 good first issue has-pr An issue that has a pull request pending that may fix this issue. The pull request may be incomplete help wanted
Projects
None yet
Development

No branches or pull requests

3 participants