Review 12.4 Merged

82845[BUGFIX] Mitigate a TypeError in `StandardContentPreviewRenderer`

Stefan Bürk CR +2 V +2 Easy +1 −1 updated 02/09/24, 22:19

Commit message

An editor can trigger a TypeError exception leading to a 503 error
message `trim() expects parameter 1 to be string, null given` in
the backend page module by creating `menu_categorized_content`
objects with `selected_categories` and then turning them into
`menu_section` objects.

This change mitigates the type error by using a null-coalesce
fallback passing an invalid type to the `trim()` method in
`StandardContentPreviewRenderer::generateListForMenuContentTypes()`.

Review

  • Code review CR +2 Done
    • Stefan Bürk +2
  • Verified V +2 Done
    • Stefan Bürk +2
    • core-ci +1 CI

Issues 1

Files 1

Review log 34

  1. Stefan Bürk commented on patch set 1 02/09/24, 21:59

    Cherry Picked from branch main.
  2. core-ci voted on patch set 1 V +1 02/09/24, 22:06 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/52992

  3. Stefan Bürk voted on patch set 1 CR +2 V +2 02/09/24, 22:07

  4. Stefan Bürk merged patch set 2 02/09/24, 22:19