Project

General

Profile

Actions

Bug #64836

closed

Can't create new scheduler tasks, if CommandController has been added wrong

Added by Armin Vieweg almost 10 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
scheduler
Target version:
-
Start date:
2015-02-03
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

When I am adding in my extbase extension a new CommandController and it does not contain the words "CommandController" an exception will be thrown [1].

But this exception will not be displayed, because in Scheduler module there exists a try/catch [2] which just continues with output and outputs the list instead of the add form.

The result is:

This issue occurs in TYPO3 6.2.9 and current master (7.1).


[1]

if (count($classNameParts) !== 4 || strpos($classNameParts[3], 'CommandController') === FALSE) {
    throw new \InvalidArgumentException('Invalid controller class name "' . $controllerClassName . '"', 1305100019);
}

[2]

switch ($this->CMD) {
    case 'add':
    case 'edit':
        try {
            // Try adding or editing
            $content .= $this->editTaskAction();
            $sectionTitle = $this->getLanguageService()->getLL('action.' . $this->CMD);
        } catch (\Exception $e) {
            // An exception may happen when the task to
            // edit could not be found. In this case revert
            // to displaying the list of tasks
            // It can also happen when attempting to edit a running task
            $content .= $this->listTasksAction();
        }
        break;
}


Files

2015-02-03_2031.png (8.95 KB) 2015-02-03_2031.png Armin Vieweg, 2015-02-03 20:33
Actions

Also available in: Atom PDF