Bug #48873
Error when calling resourceManager->deleteResource on unpublished Resource
Status: | New | Start date: | 2013-06-05 | |
---|---|---|---|---|
Priority: | Should have | Due date: | ||
Assigned To: | - | % Done: | 0% |
|
Category: | - Error Handler Report - | |||
Target version: | - | |||
PHP Version: | 5.3 | Complexity: | easy | |
Has patch: | No | Affected Flow version: | Flow 2.0.0 beta 2 |
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.