Merge conflict
Gerrit cannot merge this change. It needs a rebase onto main.
98366[FEATURE] Clean up stored form submissions and their files
Commit message
Stored form submissions were kept until an editor deleted them, and deleting one left its uploaded files behind. form:cleanup:uploads in turn removed the files of submissions that are kept, as it only looks at the age of an upload folder. The StoreSubmission finisher gets the option "retentionPeriod", which stores an expiry date with each submission, and the new command form:cleanup:submissions deletes expired submissions. Deleting a submission now deletes its uploaded files too, unless another record references them, and form:cleanup:uploads keeps folders that hold files of stored submissions.
Resolves: #111741 Related: #111734 Releases: main Change-Id: I3923271c3749b195224703ee394239b6a36e95c9
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/66/98366/1 && git checkout FETCH_HEAD
- Cherry-pick onto main
-
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/66/98366/1 && git cherry-pick FETCH_HEAD
Review
-
Code review CR 0 Needs a vote
-
Verified V 0 Needs a vote
- core-ci +1 CI
Relation chain 3
-
98366 [FEATURE] Clean up stored form submissions and their files This change
- 98365[FEATURE] Add module to show form submissions
- 98362[FEATURE] Add finisher to store form submissions
Issues 2
Files 26
- typo3/sysext/core/Documentation/Changelog/15.0/Feature-111741-CleanUpStoredFormSubmissions.rstnew+63 −0
- typo3/sysext/form/Classes/Command/CleanupFormSubmissionsCommand.phpnew+112 −0
- typo3/sysext/form/Classes/Command/CleanupFormUploadsCommand.php+8 −2
- typo3/sysext/form/Classes/Controller/FormSubmissionController.php+4 −0
- typo3/sysext/form/Classes/Domain/Finishers/StoreSubmissionFinisher.php+4 −0
- typo3/sysext/form/Classes/Domain/Repository/FormSubmissionRepository.php+3 −2
- typo3/sysext/form/Classes/Event/BeforeFormSubmissionIsStoredEvent.php+1 −1
- typo3/sysext/form/Classes/Hooks/DeleteFormSubmissionFilesHook.phpnew+71 −0
- typo3/sysext/form/Classes/Service/FormSubmissionFileService.phpnew+138 −0
- typo3/sysext/form/Configuration/Form/Base/Finishers/StoreSubmission.yaml+1 −0
- typo3/sysext/form/Configuration/Form/Base/FormElements/Form.yaml+8 −0
- typo3/sysext/form/Configuration/TCA/form_submission.php+8 −1
- typo3/sysext/form/Documentation/I/Concepts/Finishers/ReadyToUseFinishers/StoreSubmissionFinisher/_codesnippets/_finisher.php.inc+1 −0
- typo3/sysext/form/Documentation/I/Concepts/Finishers/ReadyToUseFinishers/StoreSubmissionFinisher/_codesnippets/_form.yaml+1 −0
- typo3/sysext/form/Documentation/I/Concepts/Finishers/ReadyToUseFinishers/StoreSubmissionFinisher/Index.rst+31 −1
- typo3/sysext/form/Documentation/I/HowTos/CleanupUploadFolders/Index.rst+4 −1
- typo3/sysext/form/Resources/Private/Language/Database.xlf+6 −0
- typo3/sysext/form/Resources/Private/Language/locallang_db.xlf+3 −0
- typo3/sysext/form/Resources/Private/Language/locallang_submissions.xlf+6 −0
- typo3/sysext/form/Tests/Functional/Command/Fixtures/CleanupFormSubmissionsCommandTest.csvnew+11 −0
- typo3/sysext/form/Tests/Functional/Command/CleanupFormSubmissionsCommandTest.phpnew+72 −0
- typo3/sysext/form/Tests/Functional/Command/CleanupFormUploadsCommandTest.phpnew+68 −0
- typo3/sysext/form/Tests/Functional/Domain/Finishers/StoreSubmissionFinisherTest.php+4 −2
- typo3/sysext/form/Tests/Functional/Hooks/Fixtures/FormSubmissionDataHandlerHookTest.csv+6 −0
- typo3/sysext/form/Tests/Functional/Hooks/FormSubmissionDataHandlerHookTest.php+73 −0
- typo3/sysext/form/ext_localconf.php+3 −0
Show 6 more files Show less
Review log 12
-
Josua Vogel uploaded patch set 1 12/05/26, 15:06
-
core-ci voted on patch set 1 V +1 12/05/26, 15:16 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/116460