Issue Bug Closed

#88400ProcessedFile does not implement FAL methods correctly

Daniel Corn 05/20/19, 13:59 updated 07/09/24, 12:00

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

Reviews 2

History 36

  1. Benni Mack changed Sprint Focus On Location Sprint 08/02/23, 14:54

  2. Gerrit Code Review pushed patch set 1 for main to change 81120 status New Under Review 09/20/23, 21:39

  3. Gerrit Code Review pushed patch set 2 for main to change 81120 09/20/23, 22:15

  4. Gerrit Code Review pushed patch set 1 for 12.4 to change 81140 09/20/23, 22:46

  5. Oliver Bartsch commented and changed status Under Review Resolved done 0 % 100 % 09/20/23, 22:50

    Applied in changeset commit:f26f30421ae3482c149380ae8415cb2b84d605ef.

  6. Benni Mack changed status Resolved Closed 07/09/24, 12:00