#67432Deletion of file /typo3temp/_processed_/xy.jpg failed.
Description
Due to removing a non existent file an exception is thrown. The mentioned files are always in processed.
Can we please check if the file exists and then delete it?
Reviews 5
- TYPO3_6-2 40447[BUGFIX] Check if file exists before deletion
- main 40238[BUGFIX] Check if file exists before deletion
- main 40228[BUGFIX] Check if file exists before deletion
- main 40236[BUGFIX] Check if file exists before deletion
- TYPO3_6-2 40227[BUGFIX] File deletion in "processed" folder no longer throws an exception when trying to delete a file that does not exist.
Related issues 1
History 715
-
Christoph Lehmann commented 06/13/15, 09:39
-
Christoph Lehmann commented 06/13/15, 09:59
-
Gerrit Code Review changed status
NewUnder Review 06/13/15, 10:03 Patch set 2 for branch *TYPO3_6-2* of project *Packages/TYPO3.CMS* has been pushed to the review server. It is available at http://review.typo3.org/40227 -
Gerrit Code Review 06/13/15, 10:11 Patch set 2 for branch *master* of project *Packages/TYPO3.CMS* has been pushed to the review server. It is available at http://review.typo3.org/40228
-
Gerrit Code Review 06/13/15, 10:12 Patch set 3 for branch *master* of project *Packages/TYPO3.CMS* has been pushed to the review server. It is available at http://review.typo3.org/40228
-
Gerrit Code Review 06/15/15, 09:19 Patch set 1 for branch *master* of project *Packages/TYPO3.CMS* has been pushed to the review server. It is available at http://review.typo3.org/40236
-
Gerrit Code Review 06/15/15, 09:20 Patch set 4 for branch *master* of project *Packages/TYPO3.CMS* has been pushed to the review server. It is available at http://review.typo3.org/40228
-
Gerrit Code Review 06/15/15, 09:45 Patch set 5 for branch *master* of project *Packages/TYPO3.CMS* has been pushed to the review server. It is available at http://review.typo3.org/40228
-
Gerrit Code Review 06/15/15, 10:17 Patch set 1 for branch *master* of project *Packages/TYPO3.CMS* has been pushed to the review server. It is available at http://review.typo3.org/40238
-
Gerrit Code Review 06/18/15, 15:05 Patch set 1 for branch *TYPO3_6-2* of project *Packages/TYPO3.CMS* has been pushed to the review server. It is available at http://review.typo3.org/40447
-
Anonymous commented and changed status
Under ReviewResolved done0 %100 % 06/18/15, 15:09Applied in changeset commit:c584bc14c3e815ceba386b890943f64a197003c1.
-
Riccardo De Contardi changed status
ResolvedClosed 10/23/17, 21:48 -
Susanne Moog changed Related to #67554 03/07/19, 09:17
-
F Altrock commented 11/29/21, 14:50
This occurred again for a customer of ours. (Running 10.4.21)
In the last years a call to getNearestRecyclerFolder was added to ResourceStorage::deleteFile, which possibly loads something from the registry.
So it can happen that another process removes the file between the driver->fileExists and the driver->deleteFile.The LocalDriver::deleteFile method should check if the file still exists.
-
Christoph Lehmann commented 11/29/21, 15:53
Hi, please open a new ticket for it and add this as related issue.
Stacktrace:
File "/usr/local/share/typo3/typo3_src-6.2.13/typo3/sysext/core/Classes/Resource/Driver/LocalDriver.php", line 1010, in deleteFile throw new \RuntimeException('Deletion of file ' . $fileIdentifier . ' failed.', 1320855304); File "/usr/local/share/typo3/typo3_src-6.2.13/typo3/sysext/core/Classes/Resource/ResourceStorage.php", line 1581, in deleteFile $result = $this->driver->deleteFile($fileObject->getIdentifier()); File "/usr/local/share/typo3/typo3_src-6.2.13/typo3/sysext/core/Classes/Resource/AbstractFile.php", line 421, in delete return $this->getStorage()->deleteFile($this); File "/usr/local/share/typo3/typo3_src-6.2.13/typo3/sysext/core/Classes/Resource/ProcessedFile.php", line 406, in delete return parent::delete(); File "/usr/local/share/typo3/typo3_src-6.2.13/typo3/sysext/core/Classes/Resource/ProcessedFile.php", line 472, in needsReprocessing $this->delete(); File "/usr/local/share/typo3/typo3_src-6.2.13/typo3/sysext/core/Classes/Resource/ProcessedFile.php", line 260, in isProcessed return $this->updated || ($this->isPersisted() && !$this->needsReprocessing()); File "/usr/local/share/typo3/typo3_src-6.2.13/typo3/sysext/core/Classes/Resource/Service/FileProcessingService.php", line 89, in processFile if (!$processedFile->isProcessed()) { File "/usr/local/share/typo3/typo3_src-6.2.13/typo3/sysext/core/Classes/Resource/ResourceStorage.php", line 1220, in processFile $processedFile = $this->getFileProcessingService()->processFile($fileObject, $this, $context, $configuration); File "/usr/local/share/typo3/typo3_src-6.2.13/typo3/sysext/core/Classes/Resource/File.php", line 307, in process return $this->getStorage()->processFile($this, $taskType, $configuration); File "/usr/local/share/typo3/typo3_src-6.2.13/typo3/sysext/extbase/Classes/Service/ImageService.php", line 55, in applyProcessingInstructions $processedImage = $image->process(ProcessedFile::CONTEXT_IMAGECROPSCALEMASK, $processingInstructions); File "/usr/local/share/typo3/typo3_src-6.2.13/typo3/sysext/fluid/Classes/ViewHelpers/ImageViewHelper.php", line 112, in render $processedImage = $this->imageService->applyProcessingInstructions($image, $processingInstructions); File "/usr/local/share/typo3/typo3_src-6.2.13/typo3/sysext/fluid/Classes/Core/ViewHelper/AbstractViewHelper.php", line 248, in callRenderMethod return call_user_func_array(array($this, 'render'), $renderMethodParameters); File "/usr/local/share/typo3/typo3_src-6.2.13/typo3/sysext/extbase/Classes/Mvc/Dispatcher.php", line 69, in dispatch $controller->processRequest($request, $response); File "/usr/local/share/typo3/typo3_src-6.2.13/typo3/sysext/extbase/Classes/Mvc/Web/FrontendRequestHandler.php", line 56, in handleRequest $this->dispatcher->dispatch($request, $response); File "/usr/local/share/typo3/typo3_src-6.2.13/typo3/sysext/extbase/Classes/Core/Bootstrap.php", line 195, in handleRequest $response = $requestHandler->handleRequest(); File "/usr/local/share/typo3/typo3_src-6.2.13/typo3/sysext/extbase/Classes/Core/Bootstrap.php", line 184, in run return $this->handleRequest(); File "/usr/local/share/typo3/typo3_src-6.2.13/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php", line 6634, in callUserFunction )); File "/usr/local/share/typo3/typo3_src-6.2.13/typo3/sysext/frontend/Classes/ContentObject/UserContentObject.php", line 41, in render $tempContent = $this->cObj->callUserFunction($conf['userFunc'], $conf, ''); File "/usr/local/share/typo3/typo3_src-6.2.13/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php", line 862, in USER return $this->getContentObject('USER')->render($conf); File "/usr/local/share/typo3/typo3_src-6.2.13/typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php", line 3723, in INTincScript_process $incContent = $INTiS_cObj->USER($INTiS_config[$INTiS_key]['conf']); File "/usr/local/share/typo3/typo3_src-6.2.13/typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php", line 3671, in recursivelyReplaceIntPlaceholdersInContent $this->INTincScript_process($INTiS_config); File "/usr/local/share/typo3/typo3_src-6.2.13/typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php", line 3638, in INTincScript $this->recursivelyReplaceIntPlaceholdersInContent(); File "/usr/local/share/typo3/typo3_src-6.2.13/typo3/sysext/cms/tslib/index_ts.php", line 232, in require $TSFE->INTincScript(); File "/usr/local/share/typo3/typo3_src-6.2.13/index.php", line 28, in null require(PATH_tslib . 'index_ts.php');