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

Check privilege sql has been successful on install script #22208

Merged
merged 1 commit into from
May 27, 2024

Conversation

textagroup
Copy link
Contributor

Description:

The installation script expects an exception to be thrown when testing installation queries.
However the MYSQLI adapter does not behave like this so it is possible to install with a DB user who has not been granted the "CREATE TEMPORARY TABLES" privilege.
This PR add a check on the return to confirm if the query has actually been successful.

fixes #22187

checkSqlReturn.webm

Review

@textagroup textagroup marked this pull request as ready for review May 11, 2024 03:33
@textagroup textagroup mentioned this pull request May 11, 2024
11 tasks
@sgiehl sgiehl added the Needs Review PRs that need a code review label May 16, 2024
@sgiehl sgiehl requested a review from a team May 16, 2024 12:11
Copy link
Contributor

This issue is in "needs review" but there has been no activity for 7 days. ping @matomo-org/core-reviewers

@github-actions github-actions bot added the Stale The label used by the Close Stale Issues action label May 24, 2024
@sgiehl sgiehl added this to the 5.1.0 milestone May 27, 2024
Copy link
Member

@sgiehl sgiehl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just tested that locally, and it works as expected.
Well done 🎉

@sgiehl sgiehl removed the Stale The label used by the Close Stale Issues action label May 27, 2024
@sgiehl sgiehl merged commit 2fd8cff into matomo-org:5.x-dev May 27, 2024
21 of 25 checks passed
@sgiehl sgiehl added the not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org. label May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Review PRs that need a code review not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] Installation can be continued with missing database privileges
2 participants