Issue Bug Closed

#100058Upgrade issue from v10 to v11 in legacy install with TrustedHostPattern

Julien Savard 03/01/23, 18:52 updated 04/03/25, 12:14

Description

Description :
At the end of the upgrade Wizard from v10 to v11 when everything is done it seems the TrustedHostPattern expect a new value.
TrustedHostPattern value was (in v10 before upgrade) :

‘trustedHostsPattern’ => ‘smto-typo.acc.internal.tld|app.smto-typo.acc.internal.tld|lb.smto-typo.acc.internal.tld|rp.smto-typo.acc.internal.tld|www.qual.external.tld|www.acc.external.tld’

TrustedHostPattern expected in the “Whoops”

‘trustedHostsPattern’ => ‘app.www.acc.internal.tld’,

internal.tld and external.tld are “censored” placeholder of my real domains.

Step to reproduce :
- Having a typo3 v10 legacy install
- Untar typo3_src-11.5.24.tar.gz in /var/www/html
- Remove symlink /var/www/html/public/typo3_src ( target = ../typo3_src-10.4.36 )
- Create symlink /var/www/html/public/typo3_src ( target = ../typo3_src-11.5.24 )
- touch /var/www/html/public/ENABLE_INSTALL_TOOL
- chown apache:apache ENABLE_INSTALL_TOOL
- run upgrade Wizard
- Try to log into backend
- cry with a whoops

Workaround :
Add the new URL in the TrustedHostPattern variable

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.

History 5

  1. Oliver Hader commented 03/01/23, 19:54

    Are there any hints in the typo3_*.log log files in typo3temp/var/logs/?

    > Workaround :
    > Add the new URL in the TrustedHostPattern variable

    What is the “new URL”, and what has been the value before?
    Did you try putting the names in in braces, like 'trustedHostsPattern' => '(first\.example\.org|second\.example\.org)'?

  2. Julien Savard commented 03/01/23, 20:59

    Hi,
    as written in the description :

    TrustedHostPattern value was (in v10 before upgrade) :
    
    'trustedHostsPattern' => 'smto-typo.acc.internal.tld|app.smto-typo.acc.internal.tld|lb.smto-typo.acc.internal.tld|rp.smto-typo.acc.internal.tld|www.qual.external.tld|www.acc.external.tld'
    
    TrustedHostPattern expected in the "Whoops"
    
    'trustedHostsPattern' => 'app.www.acc.internal.tld',
    
    internal.tld and external.tld are "censored" placeholder of my real domains.

    I may add that the typo site is behind a reverse proxy. The public available url site is www.acc.external.tld. It was called by the reverse proxy with app.smto-typo.acc.internal.tld but it seems after v11 it expect to be called on app.www.acc.internal.tld.

    Did you try putting the names in in braces ? -> No backslash were added in the TrustedHostPattern in V10 and it was working. If I recall well, I did try to add backslash before dot in v11 but I still got a “Whoops”.

  3. Julien Savard changed description 03/01/23, 20:59

  4. Oliver Hader changed removed the assignee 03/01/23, 22:40

  5. Oliver Hader commented and changed status New Closed 04/03/25, 12:14

    I was unable to reproduce this behavior and opt for closing this issue after 2 years.