Project

General

Profile

Actions

Bug #67432

closed

Deletion of file /typo3temp/_processed_/xy.jpg failed.

Added by Christoph Lehmann about 9 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
File Abstraction Layer (FAL)
Target version:
Start date:
2015-06-13
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
no-brainer
Is Regression:
No
Sprint Focus:

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?


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #67554: Deleting Files which are "missing" is not possibleClosed2015-06-17

Actions
Actions #1

Updated by Christoph Lehmann about 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');

Actions #3

Updated by Gerrit Code Review about 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

Actions #4

Updated by Gerrit Code Review about 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

Actions #5

Updated by Gerrit Code Review about 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

Actions #6

Updated by Gerrit Code Review about 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

Actions #7

Updated by Gerrit Code Review about 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

Actions #8

Updated by Gerrit Code Review about 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

Actions #9

Updated by Gerrit Code Review about 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

Actions #10

Updated by Gerrit Code Review about 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

Actions #11

Updated by Anonymous about 9 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #12

Updated by Riccardo De Contardi over 6 years ago

  • Status changed from Resolved to Closed
Actions #13

Updated by Susanne Moog over 5 years ago

  • Related to Bug #67554: Deleting Files which are "missing" is not possible added
Actions #14

Updated by F Altrock over 2 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.

Actions #15

Updated by Christoph Lehmann over 2 years ago

Hi, please open a new ticket for it and add this as related issue.

Actions

Also available in: Atom PDF