Bug #92149

CheckIntegrity command failing as task when saved

Added by Philipp Seiler about 1 year ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
scheduler
Target version:
-
Start date:
2020-09-01
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
10
PHP Version:
7.4
Tags:
slug,task,command,scheduler,site,finder
Complexity:
Is Regression:
Sprint Focus:

Description

  • Create a scheduler task from the sysext "redirects" for checking redirect integrity. Save the task.
  • Do NOT reopen the task and re-save it.
  • Execute this task. Task executes successfully.
  • Reopen the Task. As this is a SymfonyCommand, and it has input parameters, now the field to run the command on a specific site will be visible. Leave this field empty, but save the task again.
  • Nothing should have changed.
  • However: The site-input-argument is still passed along and saved as an empty string ''.
  • This leads an error, where TYPO3 says it can't find the given site.
  • Problem is, that the method getSites in IntegrityService checks if the passed along input argument is !== null.
  • As it is an empty string, this check of course fails.
  • Probably best to check for emtpy()-ness.

No data to display

Also available in: Atom PDF