#39085fetchTask: Missing validation of SQL result
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.
Reviews 4
- TYPO3_6-2 40263[BUGFIX] Scheduler now throws OutOfBoundsException on SQL query error
- main 40256[BUGFIX] Scheduler now throws OutOfBoundsException on SQL query error
- TYPO3_6-2 36261[BUGFIX] Scheduler now throws exception on SQL query error
- main 36208[BUGFIX] Scheduler now throws exception on SQL query error