Project

General

Profile

Actions

Bug #103377

open

Extbase Backend Module Exception if page with UID same as sys_file_storage does not exist

Added by Oliver Eglseder 2 months ago. Updated 2 months ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Extbase
Target version:
Start date:
2024-03-12
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
12
PHP Version:
7.2
Tags:
Extbase, Exception, File Module, Filelist, navigation component
Complexity:
Is Regression:
Sprint Focus:

Description

So here's the catch:

I've got an Extbase Module, simple Controller, etc. which uses the same navigation component as the File List Module.
When i select a folder in the navigation component, the id parameter is set to a combined identifier, like "1:/user_upload".

So far, so good. The problem arises, when the Extbase RequestBuilder tries to determine if a feature is enabled, which loads the ConfigurationManager, which tries to get the TypoScript, which tries to load the RootLine, which uses the id param as page id. The value is cast to an int, which leads to the UID of the sys_file_strorage to be interpreted as a page UID, which is clearly wrong. This does not throw an exception as long as the page with the UID 1 exists.

It happened to a customer, that they have a sys_file_storage with a UID which does not exist in pages, which makes the bug visible.
See the Exception trace attached.

This problem dates back AT LEAST until TYPO3 v9, but probably exists since v6.2


Files

TYPO3 Exception.html (80.6 KB) TYPO3 Exception.html Oliver Eglseder, 2024-03-12 11:18
Actions

Also available in: Atom PDF