Review 14.3 Merged

98152[BUGFIX] Improve handling of error pages that are not available

Benni Mack CR +2 V +2 Hard +336 −25 updated 11/29/26, 11:07

Commit message

PageContentErrorHandler shows the configured error page of a site.
This change improves what the handler does when it cannot show the
error page.

Before this change, the handler showed the root page when the error
page was hidden or outside its start and end time. When the
sub-request could not get the error page, the visitor got the status
code 500. This occurred, for example, when only a frontend user group
had access to the error page.

Now the handler builds the URI of the error page also when the error
page is hidden or outside its start and end time. When the handler
cannot get the error page, it sends the TYPO3 error page with the
original status code. The handler also logs a warning with the URI of
the error page. The warning also gives the status code of the
sub-request or of the external request, or the error message of the
external request. A backend user who can see hidden pages gets the
hidden error page.

As ErrorController does, the handler adds the Content-Security-Policy
headers of the site to the TYPO3 error page.
Show more Show less

Review

  • Code review CR +2 Done
    • Benni Mack +2
  • Verified V +2 Done
    • Benni Mack +2
    • core-ci +1 CI

Issues 3

Files 4

Review log 34

  1. Benni Mack uploaded patch set 1 11/28/26, 10:56

  2. core-ci voted on patch set 1 V +1 11/28/26, 11:05 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/115820

  3. Benni Mack voted on patch set 1 CR +2 V +2 11/29/26, 11:07

  4. Benni Mack merged patch set 2 11/29/26, 11:07