Bug #89774
closed
Incomplete task configuration breaks the backend module
Added by Jan Delius almost 5 years ago.
Updated over 4 years ago.
Description
If you create a new task, which should execute a console command, you have to save it before you can fill in the necessary arguments. If you now close the form, you can no longer call the Scheduler Backend module. The Symfony class "Input" throws a Symfony\Component\Console\Exception\RuntimeException because not all necessary arguments are set.
Steps to reproduce:
1. Click the "Add task" button inside the scheduler module
2. Select class "Execute console commands", select either type single or specify a frequency.
3. Select a "Schedulable Command" that has a required argument
4. Click "Save and close" (or save first and close the form after saving)
5. Scheduler module is broken now :(
- Status changed from New to Under Review
I have troubles reproducing it.
can you point me to the example of ""Schedulable Command" that has a required argument?
thanks
Tymoteusz Motylewski wrote:
I have troubles reproducing it.
can you point me to the example of ""Schedulable Command" that has a required argument?
thanks
Hey Tymoteusz, here is an example to reproduce.
Test scenario before the patch
-------------------------------------------------------
- Add new task of type "Execute console commands (scheduler)"
- Add frequency of "*/30 * * * *"
- Select "redirects:checkintegrity: Check integrity of redirects", for example
- Save the task
- Open the class "\TYPO3\CMS\Redirects\Command\CheckIntegrityCommand" and change the InputArgument from optional to required.
- Run the previous created scheduler tasks
- An T3 exception is thrown
Test scenario after the patch (with added task before)
-------------------------------------------------------
- Run the scheduler task again
- A red notification with the text "
Execution of task "Execute console commands (scheduler)" failed with the following message: Not enough arguments (missing: "site")." is visible and no T3 exception was thrown.
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
- Status changed from Resolved to Closed
Also available in: Atom
PDF