Project

General

Profile

Actions

Bug #88846

closed

Install tool (on FIRST_INSTALL) warns about "Trusted hosts pattern mismatch" although 'trustedHostsPattern' is set correctly (if no LocalConfiguration.php is present)

Added by Jonas Eberle over 4 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Install Tool
Target version:
-
Start date:
2019-07-26
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
10
PHP Version:
Tags:
CodingNight InstallTool
Complexity:
Is Regression:
Sprint Focus:

Description

With a reverse proxy in a mixed http/https configuration like

browser <https> proxy <http> webserver

(this configuration can be easily reproduced in ddev where this is default)

the install tool gives a warning on installation. The warning can be ignored and the installation be continued by clicking on "Continue with errors".
In fact this is not an error.

The warning is (obviously) not shown via http://

The warning is:

Trusted hosts pattern mismatch
The trusted hosts pattern will be configured to allow all header values. This is because your $SERVER_NAME:[defaultPort] is "testtypo.ddev.site:443" 
while your HTTP_HOST:SERVER_PORT is "testtypo.ddev.site:80". Check the pattern defined in Admin Tools -> Settings -> Configure Installation-Wide 
Options -> System -> trustedHostsPattern and adapt it to expected host value(s).

On first glance it seems that AdditionalConfiguration.php is not evaluated when NO LocalConfiguration.php is present.

Test files:

AdditionalConfiguration.php

<?php
$GLOBALS['TYPO3_CONF_VARS']['SYS']['trustedHostsPattern'] = '.*';

LocalConfiguration.php

if it does not exist, the warning is shown.
If it contains this, the warning is NOT shown:

<?php
return [];


Files

Screenshot_20190726_094834.png (39.3 KB) Screenshot_20190726_094834.png Jonas Eberle, 2019-07-26 09:48

Related issues 2 (1 open1 closed)

Related to TYPO3 Core - Bug #86356: Checking $GLOBALS['TYPO3_CONF_VARS']['SYS']['trustedHostsPattern'] should be disabled when running initial setup wizardClosed2018-09-23

Actions
Related to TYPO3 Core - Bug #91826: Install issue in TYPO3 10/11New2020-07-19

Actions
Actions #1

Updated by Jonas Eberle over 4 years ago

  • Related to Bug #86356: Checking $GLOBALS['TYPO3_CONF_VARS']['SYS']['trustedHostsPattern'] should be disabled when running initial setup wizard added
Actions #2

Updated by Gerrit Code Review over 4 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/61374

Actions #3

Updated by Gerrit Code Review over 4 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/61374

Actions #4

Updated by Gerrit Code Review over 4 years ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/61374

Actions #5

Updated by Susanne Moog over 4 years ago

  • Tags set to CodingNight
Actions #6

Updated by Gerrit Code Review over 4 years ago

Patch set 1 for branch 9.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/61363

Actions #7

Updated by Anonymous over 4 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #8

Updated by Benni Mack over 4 years ago

  • Status changed from Resolved to Closed
Actions #9

Updated by David Bruchmann almost 3 years ago

I had this issue while installing TYPO3 11.3-dev with the Installtool.
The advised hints helped, even I had to return $GLOBALS['TYPO3_CONF_VARS'] instead of an empty array.

My environment:

OS: some Linux
TYPO3 v11.3-dev
PHP 7.4
Apache 2.4, PHP, CGI
MariaDB 10.5 + InnoDB

Actions #10

Updated by David Bruchmann almost 3 years ago

  • Related to Bug #91826: Install issue in TYPO3 10/11 added
Actions #11

Updated by David Bruchmann almost 3 years ago

  • Tags changed from CodingNight to CodingNight InstallTool
Actions

Also available in: Atom PDF