Project

General

Profile

Actions

Bug #84553

closed

Uncaught TYPO3 Exception in Scheduler

Added by Ute Flierl about 6 years ago. Updated over 4 years ago.

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

0%

Estimated time:
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 1 (0 open1 closed)

Related to TYPO3 Core - Bug #84973: Cannot delete invalid Scheduler taskClosed2018-05-11

Actions
Actions #1

Updated by Sybille Peters over 5 years ago

  • Tags set to exception_handling
Actions #2

Updated by Benni Mack over 4 years ago

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

Updated by Benni Mack over 4 years ago

  • Status changed from New to Closed

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

Actions

Also available in: Atom PDF