Issue Bug Resolved

#110711partially written image from GraphicalFunctions::resize()

Benni Mack 09/15/26, 11:05 updated 09/16/26, 11:10

Description

GraphicalFunctions::resize() checks file_exists($output) and then has the image processor write directly to that path, with no temporary name and no rename(). Two concurrent requests resizing the same not-yet-cached image can both see “missing” and both start converting; a third request arriving in between sees file_exists($output) === true while the file is still being written, and can serve (or, with base64 embedding, read) a truncated image — which can then be cached into the page cache until the next flush.

Reviews 2

History 14

  1. Benni Mack commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2026-09-16T11:10:09+00:00" > 09/16/26, 11:10 </span>

    Applied in changeset commit:4976c2b3bcae6c833101ea1484154c3d610cdfdf.