Skip to content

[Bug] console diagnostics:run false positive during directories check #23181

@tassoman

Description

@tassoman

What happened?

By running php console diagnostics:run I get errors, although configuration is safe. Errors are repeated inside administration web page. All locations returned a 302 redirect.

In my situation, location are configured for a 403 error. But, before this there's a IAM cloack redirecting to authentication page. So, it's a false positive.

Also a curl timeout was detected.

What should happen?

Just throw an error, when locations return 2xx status code.

How can this be reproduced?

  1. Configure a 5.3.1 installation
  2. set a http server redirect rule
  3. check the console.

Matomo version

5.3.1

PHP version

8.1

Server operating system

Centos7

What browsers are you seeing the problem on?

Not applicable (e.g. an API call etc.)

Computer operating system

No response

Relevant log output

Required Private Directories:
        - WARNING Checking the URL https://test-matomo.example.com/config/config.ini.php failed: curl_exec: Operation timed out after 2767 milliseconds with 0 out of -1 bytes received. Hostname requested was: test-matomo.example.com
        - ERROR https://test-matomo.example.com/tmp/cache/tracker/matomocache_general.php
Recommended Private Directories:
        - ERROR https://test-matomo.example.com/tmp/
        - ERROR https://test-matomo.example.com/tmp/empty
        - ERROR https://test-matomo.example.com/lang/en.json
        - INFORMATIONAL We found that the above URLs are accessible via the browser, but we recommend they should not be. If possible, please restrict access to them. Read this to learn more.

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    Potential BugSomething that might be a bug, but needs validation and confirmation it can be reproduced.triaged

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions