Bug #84553

Uncaught TYPO3 Exception in Scheduler

Added by Ute Flierl almost 2 years ago. Updated about 1 month ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
scheduler
Target version:
-
Start date:
2018-03-29
Due date:
% Done:

0%

TYPO3 Version:
8
PHP Version:
7.1
Tags:
exception_handling
Complexity:
Is Regression:
Sprint Focus:

Description

Scheduler throws an unhandled exception in method isValidTaskObject when the deserialized task is null or not an instance of AbstractTask.

Core: Exception handler (CLI): Uncaught TYPO3 Exception: Call to a member function getExecution() on null | Error thrown in file /homepages/32/d31932396/htdocs/typo3/typo3_src-8.7.12/typo3/sysext/scheduler/Classes/Scheduler.php in line 449

The two conditions of the validity check
return get_class($task->getExecution()) !== '__PHP_Incomplete_Class' && $task instanceof Task\AbstractTask;
should simply be reordered for the instanceof-check to be executed first so false is returned immediately without calling a method of the invalid task.


Related issues

Related to TYPO3 Core - Bug #84973: Cannot delete invalid Scheduler task Closed 2018-05-11

History

#1 Updated by Sybille Peters over 1 year ago

  • Tags set to exception_handling

#2 Updated by Benni Mack about 1 month ago

  • Related to Bug #84973: Cannot delete invalid Scheduler task added

#3 Updated by Benni Mack about 1 month ago

  • Status changed from New to Closed

We've fixed this with #84973 in May 2018.

Also available in: Atom PDF