Project

General

Profile

Actions

Bug #96646

closed

404 endless loop with disabled default language

Added by Alexander Vogt almost 3 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Site Handling, Site Sets & Routing
Target version:
-
Start date:
2022-01-26
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
11
PHP Version:
Tags:
public-security-issue
Complexity:
Is Regression:
Sprint Focus:

Description

Site configuration:

base: 'https://www.example.de'
rootPageId: '1'
errorHandling:
  - errorCode: '404'
    errorHandler: Page
    errorContentSource: 't3://page?uid=5'
languages:
  - title: Deutsch
    enabled: false
    languageId: 0
    base: /de/
  - title: English
    enabled: true
    languageId: 1
    base: /en/

This leads to a 404 endless loop with default language calls (e.g. https://www.example.de/de/unknown).

The issue seems to be in the PageContentErrorHandler url resolver:
https://github.com/TYPO3/typo3/blob/v11.5.5/typo3/sysext/core/Classes/Error/PageErrorHandler/PageContentErrorHandler.php#L237-L246

The "enabled" state of the default language should also be checked.

Actions

Also available in: Atom PDF