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. Gerrit Code Review pushed patch set 1 for main to change 95854 status New Under Review 09/15/26, 12:25

  2. Gerrit Code Review pushed patch set 2 for main to change 95854 09/15/26, 13:12

  3. Gerrit Code Review pushed patch set 1 for 14.3 to change 95872 09/16/26, 10:25

  4. Benni Mack commented and changed status Under Review Resolved done 0 % 100 % 09/16/26, 11:10

    Applied in changeset commit:4976c2b3bcae6c833101ea1484154c3d610cdfdf.