Bug #67432
closedDeletion of file /typo3temp/_processed_/xy.jpg failed.
Added by Christoph Lehmann over 9 years ago. Updated almost 3 years ago.
100%
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?
Updated by Christoph Lehmann over 9 years ago
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');
Updated by Gerrit Code Review over 9 years ago
- Status changed from New to Under Review
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
Updated by Gerrit Code Review over 9 years ago
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
Updated by Gerrit Code Review over 9 years ago
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
Updated by Gerrit Code Review over 9 years ago
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
Updated by Gerrit Code Review over 9 years ago
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
Updated by Gerrit Code Review over 9 years ago
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
Updated by Gerrit Code Review over 9 years ago
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
Updated by Gerrit Code Review over 9 years ago
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
Updated by Anonymous over 9 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset c584bc14c3e815ceba386b890943f64a197003c1.
Updated by Riccardo De Contardi about 7 years ago
- Status changed from Resolved to Closed
Updated by Susanne Moog over 5 years ago
- Related to Bug #67554: Deleting Files which are "missing" is not possible added
Updated by F Altrock almost 3 years ago
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.
Updated by Christoph Lehmann almost 3 years ago
Hi, please open a new ticket for it and add this as related issue.