Review main Ready for review

97807[BUGFIX] Remove processed files after cross-storage move

Oli Bartsch CR 0 V 0 Easy +45 −0 updated 11/18/26, 21:14

Commit message

When a file was moved to a different storage, its processed files
were left untouched. The records in sys_file_processedfile kept
pointing to the old storage and to the files in its _processed_
folder. Those files were still delivered after the move. Once the
old storage was removed, the records could not be resolved anymore.

The source file is removed through the recycler or the driver, so no
deletion event is dispatched. No listener on AfterFileMovedEvent took
care of processed files either.

FileDeletionAspect now listens to AfterFileMovedEvent and removes the
processed files, both the records and the physical files, when the
storage of the file has changed. They are regenerated on next access.
Moves within one storage are not affected.

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 1
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/07/97807/1 && git checkout FETCH_HEAD
Cherry-pick onto main
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/07/97807/1 && git cherry-pick FETCH_HEAD

Review

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

Issues 1

Files 2

Review log 12

  1. Oli Bartsch uploaded patch set 1 11/18/26, 21:06

  2. core-ci voted on patch set 1 V +1 11/18/26, 21:14 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/114927