Issue Bug Closed

#106904DeferredBackendImageProcessor runs file exists check on wrong path

Markus Klein 06/18/25, 10:11 updated 12/02/25, 14:21

Description

During performance debugging a S3 FAL storage, we discovered that the DeferredBackendImageProcessor runs a file existence check against an invalid path.
Hence the check is always false.

&& !$task->getSourceFile()->getStorage()->getProcessingFolder()->hasFile($task->getTargetFileName());

Example:
The processed file should reside in “_processed_/6/f/csm_blueeyessmall_43ba9703cb.jpg”.
The line above runs a check against “_processed_/csm_blueeyessmall_43ba9703cb.jpg”.

This would probably fix the issue:

&& !$task->getSourceFile()->getStorage()->getProcessingFolder()->hasFile($task->getTargetFile()->getIdentifier());

Reviews 3

History 49

  1. Markus Klein commented <span data-processor="relativetime" data-value="2025-07-04T20:42:33+00:00" > 07/04/25, 20:42 </span>

    The proposed solution is wrong.

    The whole condition && !$task->getSourceFile()->getStorage()->getProcessingFolder()->hasFile($task->getTargetFileName()) used to work back in v6 times.
    Before https://forge.typo3.org/issues/56557 was implemented.

    The same condition is present in all file processor classes.

  2. Markus Klein commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2025-07-25T16:55:10+00:00" > 07/25/25, 16:55 </span>

    Applied in changeset commit:93cc5c01df614f040bb24b871fdedafe411f5825.