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 #1

Updated by Gerrit Code Review almost 10 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/36637

Actions #2

Updated by Gerrit Code Review almost 10 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/36637

Actions #3

Updated by Gerrit Code Review almost 10 years ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/36637

Actions #4

Updated by Gerrit Code Review almost 10 years ago

Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/36637

Actions #5

Updated by Gerrit Code Review almost 10 years ago

Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/36637

Actions #6

Updated by Gerrit Code Review almost 10 years ago

Patch set 6 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/36637

Actions #7

Updated by Gerrit Code Review almost 10 years ago

Patch set 7 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/36637

Actions #8

Updated by Gerrit Code Review almost 10 years ago

Patch set 8 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/36637

Actions #9

Updated by Gerrit Code Review almost 10 years ago

Patch set 1 for branch TYPO3_6-2 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/36718

Actions #10

Updated by Armin Vieweg almost 10 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #11

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF