Actions
Bug #103949
closedProcessedFile::getSize returns 0
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?
Updated by Georg Ringer 10 months ago
- Is duplicate of Bug #103777: \TYPO3\CMS\Core\Resource\AbstractFile::getSize returns null for files with a size of 0 byte added
Updated by Georg Ringer 10 months ago
- Related to Task #101327: Harden FileInterface::getSize() added
Updated by Georg Ringer 10 months ago
- Status changed from New to Accepted
- Assignee set to Georg Ringer
Updated by Georg Ringer 10 months ago
ยท Edited
- Status changed from Accepted to Closed
closed as duplicate of #103777 - pushing a change in couple of minutes
Actions