Merge conflict Gerrit cannot merge this change. It needs a rebase onto main.

Review main Work in progress Stale Breaking

93502[!!!][TASK] Store processed file configuration as JSON

Youichi Uemura CR 0 V -1 Hard +534 −16 updated 07/30/26, 18:10

Commit message

The processing configuration of a processed file - width, height,
cropping information and any other instruction needed to recreate the
file - is persisted in the `configuration` column of the
`sys_file_processedfile` database table. It contained a PHP
`serialize()` payload that had to be read back with `unserialize()`,
and is now stored as JSON instead.

`ConfigurationService` gains `toJson()` and `fromJson()` for this.
`Area` objects are encoded as plain arrays carrying a `__type` marker
and restored from it, file objects are reduced to their array
representation as before.

The `configurationsha1` column, used to look up a processed file for a
given configuration, is derived from the stored value and now contains
the hash of the JSON representation.

The `checksum` column keeps its serialize-based calculation. It is
provided by the processing task, whose subclasses may extend the
checksum data, and is part of the name of the file on disk. Keeping it
stable avoids recreating every existing processed file, and the value
is a one-way signature that is never turned back into PHP values.

An upgrade wizard converts existing records and recalculates
`configurationsha1`. Since the `configuration` column is a blob, which
can not be filtered with `LIKE` in a platform independent way, it pages
through the table by uid and detects outdated records in PHP.

Test this change

Run a command in your clone of the TYPO3 Core. Then try what the change does and vote on Verified in Gerrit. How to review a patch

Check out patch set 5
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/02/93502/5 && git checkout FETCH_HEAD
Cherry-pick onto main
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/02/93502/5 && git cherry-pick FETCH_HEAD

Review

  • Code review CR 0 Needs a vote
  • Verified V -1 Blocked
    • core-ci -1 CI

Issues 1

Files 7

Review log 510

  1. Youichi Uemura uploaded patch set 1 04/01/26, 06:08

  2. Youichi Uemura updated the commit message in patch set 2 04/01/26, 06:12

  3. core-ci voted on patch set 2 V -1 04/01/26, 06:28 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/99351

  4. core-ci voted on patch set 1 V -1 04/01/26, 06:45 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/99350

  5. Youichi Uemura uploaded patch set 3 V -1 04/01/26, 06:48

  6. Youichi Uemura updated the commit message in patch set 4 04/01/26, 06:50

  7. core-ci voted on patch set 4 V +1 04/01/26, 07:01 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/99354

  8. core-ci voted on patch set 3 V +1 04/01/26, 07:25 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/99353

  9. Benni Mack uploaded patch set 5 V +1 07/30/26, 17:57

  10. core-ci voted on patch set 5 V -1 07/30/26, 18:10 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/105708