Project

General

Profile

Actions

Bug #103949

closed

ProcessedFile::getSize returns 0

Added by Johannes Nielsen about 2 months ago. Updated about 2 months ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
File Abstraction Layer (FAL)
Target version:
-
Start date:
2024-05-29
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
12
PHP Version:
8.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

The method TYPO3\CMS\Core\Resource\ProcessedFile::getSize declares its return type to be int. However, it calls parent::getSize whose return type is int|null. This can lead to exceptions.
This is already fixed in v13 (see this revision: https://review.typo3.org/c/Packages/TYPO3.CMS/+/80002). Maybe this could be backported?


Related issues 2 (1 open1 closed)

Related to TYPO3 Core - Task #101327: Harden FileInterface::getSize()ClosedAlexander Schnitzler2023-07-11

Actions
Is duplicate of TYPO3 Core - Bug #103777: \TYPO3\CMS\Core\Resource\AbstractFile::getSize returns null for files with a size of 0 byteUnder Review2024-05-02

Actions
Actions

Also available in: Atom PDF