Review 13.4 Merged

88440[TASK] Provide expression with TypoScript condition errors

Christian Kuhn CR +2 V +2 Easy +12 −2 updated 03/03/25, 12:58

Commit message

TypoScript conditions are commonly tailored to frontend usage and often
miss guards like "traverse()" to avoid accessing undefined objects or
properties. In this case an unspecific RuntimeException was thrown which
mentioned the error but made it hard to understand the reason/context.

We now throw a more specific RuntimeException to mention the TypoScript
condition context and the faulty expression.

The same is done for the error log message in case of TypoScript
condition syntax errors.

Review

  • Code review CR +2 Done
    • Christian Kuhn +2
  • Verified V +2 Done
    • Christian Kuhn +2
    • core-ci +1 CI

Issues 1

Files 1

Review log 34

  1. Christian Kuhn uploaded patch set 1 03/03/25, 12:30

  2. core-ci voted on patch set 1 V +1 03/03/25, 12:36 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/75015

  3. Christian Kuhn voted on patch set 1 CR +2 V +2 03/03/25, 12:58

  4. Christian Kuhn merged patch set 2 03/03/25, 12:58