Skip to content
Snippets Groups Projects
  1. Apr 20, 2020
  2. Apr 19, 2020
  3. Apr 17, 2020
    • Helmut Hummel's avatar
      [BUGFIX] Skip input validation in scheduler command task · a3730417
      Helmut Hummel authored
      All commands that are added via Configuration/Commands.php
      are instantiated and prepared when the "scheduler:run" command is
      executed. This preparation includes setting the Application object.
      
      If this Application object is present in an Command object,
      calling the run method of the command will cause a merge
      of the application's arguments with command arguments.
      
      Since command objects in symfony/console and TYPO3 are
      more or less singletons, these merged arguments will
      stay merged on a second "instantiation" of the command
      through when scheduler executes the second task with the same command.
      
      Therefore we must SKIP the validation of the new Input object
      we create and pass to the command's run method, so that this
      validation does not fail due to the missing command argument.
      
      It also does not matter that we skip validation, because validation
      happens implicitly when calling the run method on the command object.
      Only Symfony code is "smart" enough to set the command argument,
      when it was not present before.
      
      Resolves: #87312
      Releases: master,9.5
      Change-Id: I75677493216961fd7559a923e94e7831e07921bf
      Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/64143
      
      
      Tested-by: default avatarTYPO3com <noreply@typo3.com>
      Tested-by: default avatarRichard Haeser <richard@maxserv.com>
      Reviewed-by: default avatarRichard Haeser <richard@maxserv.com>
      a3730417
  4. Apr 16, 2020
  5. Apr 15, 2020
  6. Apr 14, 2020
  7. Apr 13, 2020
  8. Apr 12, 2020
  9. Apr 11, 2020
  10. Apr 10, 2020
  11. Apr 08, 2020
  12. Apr 07, 2020
  13. Apr 06, 2020
  14. Apr 05, 2020
  15. Apr 04, 2020
  16. Apr 02, 2020