Project

General

Profile

Actions

Bug #39085

closed

fetchTask: Missing validation of SQL result

Added by Julian Hofmann almost 12 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
scheduler
Target version:
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.


Related issues 1 (0 open1 closed)

Precedes TYPO3 Core - Bug #67463: Scheduler sometimes uses 100% CPU for daysClosedMathias Schreiber2015-06-15

Actions
Actions

Also available in: Atom PDF