Review 13.4 Merged

88477[BUGFIX] Improve exception handling for incorrect YAML syntax

Benjamin Franzke CR +2 V +2 Normal +52 −3 updated 03/04/25, 12:45

Commit message

When a site config.yaml file contains a syntax error, it currently triggers
a `\Symfony\Component\Yaml\Exception\ParseException`. This change ensures
that a `\TYPO3\CMS\Core\Configuration\Loader\Exception\YamlParseException`
is thrown instead, providing context on which YAML file contains the error.

Additionally, the TYPO3 exception includes a link to the documentation,
allowing integrators to access relevant help more easily.

Review

  • Code review CR +2 Done
    • Benjamin Franzke +2
  • Verified V +2 Done
    • Benjamin Franzke +2
    • core-ci +1 CI

Issues 1

Files 5

Review log 34

  1. Benjamin Franzke commented on patch set 1 03/04/25, 12:37

    Cherry Picked from branch main.
  2. Benjamin Franzke voted on patch set 1 CR +2 V +2 03/04/25, 12:38

  3. core-ci voted on patch set 1 V +1 03/04/25, 12:43 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/75099

  4. Benjamin Franzke merged patch set 2 03/04/25, 12:45