Review 14.3 Merged

96252[BUGFIX] Respond with 404 for unconfigured non-zero page type

Benni Mack CR +2 V +2 Normal +48 −18 updated 10/01/26, 08:16

Commit message

Requests carrying a non-zero ?type= parameter that does not match any
configured PAGE object currently log an error and return a 500 Internal
Server Error for every request. Looping through arbitrary type numbers
can therefore flood the log and overflow the database.

type=0 is the mandatory default page representation; when it is missing
the site cannot render at all, which is a server misconfiguration that
keeps the existing 500 response and error-level log.

Any other type requests an optional representation. If it does not
exist, the resource in that representation is simply unavailable, so
respond with the configurable 404 handling and log at debug level
instead of writing an error for each request.

Review

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

Issues 1

Files 3

Review log 34

  1. Benni Mack commented on patch set 1 10/01/26, 07:57

    Cherry Picked from branch main.
  2. core-ci voted on patch set 1 V +1 10/01/26, 08:10 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/109764

  3. Benni Mack voted on patch set 1 CR +2 V +2 10/01/26, 08:15

  4. Benni Mack merged patch set 2 10/01/26, 08:16