Bug #48873

Error when calling resourceManager->deleteResource on unpublished Resource

Added by Bernd Helbig over 8 years ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
- Error Handler Report -
Target version:
-
Start date:
2013-06-05
Due date:
% Done:

0%

Estimated time:
PHP Version:
5.3
Has patch:
No
Complexity:
easy

Description

$fileResource = $this->resourceManager->importUploadedResource($fileUpload);
//extracting info here, works fine
$this->resourceManager->deleteResource($fileResource);

This currently causes:

Warning: Invalid argument supplied for foreach() in /flow/Data/Temporary/Development/Cache/Code/Flow_Object_Classes/TYPO3_Flow_Resource_Publishing_FileSystemPublishingTarget.php line 158

No big deal breaker, since one can delete the file manually using the same code as is inside deleteResource(), skipping the whole unpublish part, but should be fixed in any case.

No data to display

Also available in: Atom PDF