Skip to content
Snippets Groups Projects
  1. Jul 25, 2023
  2. Jul 24, 2023
  3. Jul 21, 2023
  4. Jul 20, 2023
    • Stefan Bürk's avatar
      [TASK] Use later DataHandler hook in `DataHandlerSlugUpdateHook` · 8991fcbb
      Stefan Bürk authored
      Handling the pages slug changed event has been implemented with
      a dedicated hook handling class, consuming two DataHandler hooks
      to prepare and handle the redirect creation and slug update for
      subpages. Auto redirect creation and subpage slug updating are
      controlled by site setting configuration options.
      
      The chosen second hook `processDatamap_postProcessFieldArray()`
      is executed before the record is persisted into the database.
      
      This change switches to `processDatamap_afterDatabaseOperations()`
      as the second hook, so handling code can expect to have the
      changes persisted to the database already. For example, this
      would allow to use the slug generator in the `updateSlug()`
      method in a dedicated change as possible solution for #96928.
      
      Resolves: #101335
      Related: #96928
      Releases: main, 12.4
      Change-Id: I5a83b6ecb9bebd7d1ebf1f3c704ca2ec2c10aa96
      Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/80064
      
      
      Tested-by: default avatarStefan B�rk <stefan@buerk.tech>
      Reviewed-by: default avatarStefan B�rk <stefan@buerk.tech>
      Tested-by: default avatarcore-ci <typo3@b13.com>
      8991fcbb
    • Gerrit Mohrmann's avatar
      [BUGFIX] Ensure placeholders are replaced when loading `settings.yaml` · 2e29b322
      Gerrit Mohrmann authored
      Site settings have been extracted from `config.yaml` with #99047
      by providing a dedicated `UpgradeWizard`. Site settings are now
      read from the `settings.yaml` in the site configuration folder,
      if it exists.
      
      During editing site configuration within the GUI, the deprecated
      settings in the `config.yaml` has been updated. That missbehaviour
      was corrected with #100162.
      
      Before these changes, symfony yaml placeholder have been replaced
      except if the SiteConfiguration have been loaded in edit context
      or context needing the raw configuraiton (couple of form engine
      elements). Loaded from `settings.yaml` the placeholder are not
      replaced anymore.
      
      This change now ensures that site settings loaded from the
      `settings.yaml` are loaded with replacing placeholder again.
      Additionally, a todo-comment is added to raise some precaution
      for an eventually coming settings GUI for the `settings.yaml`.
      
      Resolves: #101386
      Related: #100162
      Related: #99047
      Releases: main, 12.4
      Change-Id: I6c601226b404c1d1180d6702950af2cbd3e41529
      Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/80063
      
      
      Tested-by: default avatarcore-ci <typo3@b13.com>
      Reviewed-by: default avatarStefan B�rk <stefan@buerk.tech>
      Tested-by: default avatarStefan B�rk <stefan@buerk.tech>
      2e29b322
  5. Jul 19, 2023
  6. Jul 18, 2023
  7. Jul 17, 2023
  8. Jul 15, 2023
    • Stefan Bürk's avatar
      [BUGFIX] Do not consider done `UpgradeWizard` as not found · 7b92501a
      Stefan Bürk authored
      Existing upgrade wizards marked as done should not be considered as
      not existing and therefore not returning a error exit code in the
      cli command. This was the case before TYPO3 v12.2, changing that
      behavior with #99586 to support register upgrade wizard based on
      a PHP attribute.
      
      Postulating that this was a unintended side-effect for single upgrade
      execution, this change adds a early check if the upgrade wizards is
      marked as done to keep a non-error exit code and outputting a use-full
      note to the console.
      
      Note: Executing all possible upgrade-wizards are not related to this
            issue, and therefore do not need any adjustment. But this is
            the reason for keeping the `isWizardDone()` check in method
            `getWizard()`.
      
      This can be tested with:
      
      > bin/typo3 upgrade:run migrateSiteSettings ; echo "$?"
      
      for TYPO3 main or
      
      > bin/typo3 upgrade:run svgFilesSanitization ; echo "$?"
      
      for TYPO3 12.4.x (and 11.5.x as verification)
      
      Resolves: #101354
      Related: #99586
      Releases: main, 12.4
      Change-Id: I126fccb014e418dc2e4f00aa4775753d17e11749
      Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/79990
      
      
      Reviewed-by: default avatarNikita Hovratov <nikita.h@live.de>
      Tested-by: default avatarcore-ci <typo3@b13.com>
      Reviewed-by: default avatarStefan B�rk <stefan@buerk.tech>
      Tested-by: default avatarNikita Hovratov <nikita.h@live.de>
      Tested-by: default avatarStefan B�rk <stefan@buerk.tech>
      7b92501a
  9. Jul 14, 2023
  10. Jul 13, 2023