Bug #101924
closedTry/catch cleanup:missingrelations to avoid crashes when setReferenceValue fails
100%
Description
While running cleanup:missingrelations the datahandler crashes on retrieving a file and stops the further cleanup.
With a 'simple' try/catch the process should at least continue.
Removing reference in record "sys_file_metadata:95:file" (Hash: 031a1cfca7cf323b83930f4fe96645ae)
[ TYPO3\CMS\Core\Resource\Exception\FileDoesNotExistException ]
No file found for given UID: 94
Exception code: 1317178604
Exception trace:
#0 ()
vendor/typo3/cms-core/Classes/Resource/ResourceFactory.php:210
#1 TYPO3\CMS\Core\Resource\ResourceFactory->getFileObject()
vendor/typo3/cms-core/Classes/Resource/Security/FileMetadataPermissionsAspect.php:164
#2 TYPO3\CMS\Core\Resource\Security\FileMetadataPermissionsAspect->checkFileWriteAccessForFileMetaData()
vendor/typo3/cms-core/Classes/Resource/Security/FileMetadataPermissionsAspect.php:101
#3 TYPO3\CMS\Core\Resource\Security\FileMetadataPermissionsAspect->checkModifyAccessList()
vendor/typo3/cms-core/Classes/DataHandling/DataHandler.php:7113
#4 TYPO3\CMS\Core\DataHandling\DataHandler->checkModifyAccessList()
vendor/typo3/cms-core/Classes/DataHandling/DataHandler.php:861
#5 TYPO3\CMS\Core\DataHandling\DataHandler->process_datamap()
vendor/typo3/cms-core/Classes/Database/ReferenceIndex.php:740
#6 TYPO3\CMS\Core\Database\ReferenceIndex->setReferenceValue()
vendor/typo3/cms-lowlevel/Classes/Command/MissingRelationsCommand.php:360
#7 TYPO3\CMS\Lowlevel\Command\MissingRelationsCommand->removeReferencesToMissingRecords()
vendor/typo3/cms-lowlevel/Classes/Command/MissingRelationsCommand.php:170
#8 TYPO3\CMS\Lowlevel\Command\MissingRelationsCommand->execute()
vendor/symfony/console/Command/Command.php:326
#9 Symfony\Component\Console\Command\Command->run()
vendor/symfony/console/Application.php:1081
#10 Symfony\Component\Console\Application->doRunCommand()
vendor/symfony/console/Application.php:320
#11 Symfony\Component\Console\Application->doRun()
vendor/symfony/console/Application.php:174
#12 Symfony\Component\Console\Application->run()
vendor/typo3/cms-core/Classes/Console/CommandApplication.php:112
#13 TYPO3\CMS\Core\Console\CommandApplication->run()
vendor/typo3/cms-cli/typo3:23
#14 {closure}()
vendor/typo3/cms-cli/typo3:24
#15 include()
vendor/bin/typo3:120
cleanup:missingrelations [--dry-run] [--update-refindex]
Updated by Gerrit Code Review about 1 year ago
- Status changed from New to Under Review
Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/81024
Updated by Gerrit Code Review about 1 year ago
Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/81024
Updated by Gerrit Code Review about 1 year ago
Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/81026
Updated by Gerrit Code Review about 1 year ago
Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/81026
Updated by Gerrit Code Review about 1 year ago
Patch set 3 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/81026
Updated by Gerrit Code Review about 1 year ago
Patch set 4 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/81026
Updated by Gerrit Code Review about 1 year ago
Patch set 5 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/81026
Updated by Gerrit Code Review about 1 year ago
Patch set 6 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/81026
Updated by Gerrit Code Review about 1 year ago
Patch set 3 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/81024
Updated by Gerrit Code Review about 1 year ago
Patch set 4 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/81024
Updated by Gerrit Code Review about 1 year ago
Patch set 5 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/81024
Updated by Gerrit Code Review about 1 year ago
Patch set 6 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/81024
Updated by Gerrit Code Review about 1 year ago
Patch set 1 for branch 12.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/81139
Updated by Benjamin Serfhos about 1 year ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset cfb79e94ac4ace50c818657deca85935288982d3.