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

disable http requests on config #18014

Closed
wants to merge 22 commits into from
Closed

disable http requests on config #18014

wants to merge 22 commits into from

Conversation

geekdenz
Copy link
Contributor

Description:

fixes #17589

Review

@geekdenz geekdenz added the Needs Review PRs that need a code review label Sep 16, 2021
@geekdenz geekdenz marked this pull request as ready for review September 16, 2021 02:47
@geekdenz geekdenz added the not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org. label Sep 16, 2021
config/global.ini.php Outdated Show resolved Hide resolved
@geekdenz geekdenz marked this pull request as draft September 17, 2021 02:05
@geekdenz geekdenz removed the Needs Review PRs that need a code review label Sep 17, 2021
@geekdenz geekdenz marked this pull request as ready for review September 20, 2021 01:39
@geekdenz geekdenz added the Needs Review PRs that need a code review label Sep 20, 2021
@geekdenz
Copy link
Contributor Author

The SEO test fails consistently here, but this seems to have nothing to do with this PR.

Copy link
Member

@tsteur tsteur left a comment

Choose a reason for hiding this comment

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

@geekdenz Left two minor comments @geekdenz be also good to put the PR in current milestone.

config/global.ini.php Show resolved Hide resolved
@geekdenz geekdenz added this to the 4.5.0 milestone Sep 20, 2021
@geekdenz geekdenz marked this pull request as draft September 21, 2021 10:26
@sgiehl
Copy link
Member

sgiehl commented Sep 21, 2021

Just out of curiosity: Why do we need an option to disable certain diagnostic checks? If someone wants to remove the private directory checks he can simply achieve that by creating a config\config.php with this content:

return [
    'diagnostics.disabled' => DI\add([
        DI\get(\Piwik\Plugins\Diagnostics\Diagnostic\RequiredPrivateDirectories::class),
        DI\get(\Piwik\Plugins\Diagnostics\Diagnostic\RecommendedPrivateDirectories::class),
    ])
];

@tsteur
Copy link
Member

tsteur commented Sep 21, 2021

@sgiehl we usually don't ask users to edit config.php if it can be avoided. The ini file is a lot easier to change for people, especially non-technical people. And once they have more entries in config.php it may be easy for them to break things. Also this way it's independent of code. Like recently we changed class names for these and then it wouldn't work anymore or even the entire Matomo could break if we removed these classes maybe as the files would no longer exist.

@geekdenz
Copy link
Contributor Author

@geekdenz geekdenz removed the Needs Review PRs that need a code review label Sep 22, 2021
@geekdenz geekdenz added the Needs Review PRs that need a code review label Sep 22, 2021
@geekdenz geekdenz marked this pull request as ready for review September 22, 2021 19:56
@geekdenz geekdenz added Needs Review PRs that need a code review and removed Needs Review PRs that need a code review labels Sep 22, 2021
@tsteur
Copy link
Member

tsteur commented Sep 22, 2021

@geekdenz this looks good to merge.

For some reason thought the PR build always fails see eg https://app.travis-ci.com/github/matomo-org/matomo/jobs/539047123#L1189

and also in the previous run see https://app.travis-ci.com/github/matomo-org/matomo/builds/238279592

Not sure if there went something wrong with .gitmodules etc. It says:

image

@bx80 experienced this recently as well and fixed it with https://developer.matomo.org/guides/git#fixing-the-error-fatal-remote-error-upload-pack-not-our-ref

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.

Add config option to disable http requests in System Checks to prevent server crashes with mod_security
4 participants