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 #1

Updated by Georg Ringer about 2 months ago

  • Is duplicate of Bug #103777: \TYPO3\CMS\Core\Resource\AbstractFile::getSize returns null for files with a size of 0 byte added
Actions #2

Updated by Georg Ringer about 2 months ago

  • Related to Task #101327: Harden FileInterface::getSize() added
Actions #3

Updated by Georg Ringer about 2 months ago

  • Status changed from New to Accepted
  • Assignee set to Georg Ringer
Actions #4

Updated by Georg Ringer about 2 months ago ยท Edited

  • Status changed from Accepted to Closed

closed as duplicate of #103777 - pushing a change in couple of minutes

Actions

Also available in: Atom PDF