Actions
Bug #39085
closedfetchTask: Missing validation of SQL result
Start date:
2012-07-19
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
The method fetchTask trys to fetch any tasks from table tx_scheduler_task by using exec_SELECT_queryArray (-> exec_SELECTquery -> mysql_query). The result is a resource on success, or FALSE on error. In the following the result is always expected as resource - the case of an error is not handled.
E.g. in case of an damaged table tx_scheduler_task the scheduler is trying to handle FALSE as resource and throws many exceptions.
In my opinion there should be a validation of the result and a locking in case of erros.
Actions