Review 14.3 Merged

98269[BUGFIX] Validate site entry points before saving

Georg Ringer CR +2 V +2 Hard +250 −50 updated 12/01/26, 20:04

Commit message

An entry point of a site, a language or a base variant which cannot
be parsed as URI, e.g. "//https:domain.tld/" or "htttp://domain.tld",
is stored by the Sites module without complaint. The site is then
skipped as invalid site, or breaks as soon as a base variant with the
broken entry point matches.

The Sites module now validates all entry points, including the base
of every base variant, before the configuration is persisted, and
shows an error naming the affected configuration option instead of
saving a broken configuration.

The validation of the command "site:validate" is extracted into the
new internal SiteBaseValidator, so the Sites module and the command
report the same errors. It relies on the dedicated
InvalidSiteConfigurationException of the Site object instead of
re-implementing the URI normalization.
Show more Show less

Review

  • Code review CR +2 Done
    • Georg Ringer +2
  • Verified V +2 Done
    • Georg Ringer +2
    • core-ci +1 CI

Issues 1

Files 5

Review log 45

  1. Georg Ringer uploaded patch set 1 12/01/26, 19:48

  2. Georg Ringer voted on patch set 1 CR +1 V +1 12/01/26, 19:50

  3. core-ci voted on patch set 1 V +1 12/01/26, 19:55 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/116137

  4. Georg Ringer voted on patch set 1 CR +2 V +2 12/01/26, 20:04

  5. Georg Ringer merged patch set 2 12/01/26, 20:04