Bug #88400

ProcessedFile does not implement FAL methods correctly

Added by Daniel Corn over 2 years ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
File Abstraction Layer (FAL)
Target version:
-
Start date:
2019-05-20
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
9
PHP Version:
7.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

A Processed File instance can not be moved through the API methods.

$processedImage->moveTo() will crash with the following exception:

Uncaught TYPO3 Exception Argument 1 passed to TYPO3\CMS\Core\Resource\Index\Indexer::updateIndexEntry() must be an instance of TYPO3\CMS\Core\Resource\File, instance of TYPO3\CMS\Core\Resource\ProcessedFile given, called in typo3/sysext/core/Classes/Resource/ResourceStorage.php on line 1978
thrown in file typo3/sysext/core/Classes/Resource/Index/Indexer.php
in line 88

A basic extension that invokes this behaviour can be found under https://github.com/iresults/resize_image_error

Example call

typo3 resize-image-error:image-resize fileadmin/test/input.jpg fileadmin/test/output.jpg

No data to display

Also available in: Atom PDF