Problem/Motivation

The 4.x beta audit (see the parent issue) found defects whose fix would change behaviour that existing sites may rely on. They were left out of the beta fixes and are described here, so that each can be decided on its own.

  1. Content without a domain gets its access records from the active domain. When a node has no domain, hook_node_access_records() grants it to the domain that is active when the records are written. A permissions rebuild run from one.example.com puts every such node on domain one only; run from Drush, the published ones show on every domain; a later save through the API or a migration moves the node to the domain of that request. Any fixed rule (no domain grant, or the default domain written into the field) changes what existing sites show.
  2. A deleted domain leaves its configuration overrides behind. Nothing deletes the domain.{id} and domain.{id}.language.* collections, nor the Domain Config UI registry entries. The overrides disappear from export and from the saved configuration page, and come back when a domain with the same id is created again. Uninstalling domain_config leaves them too. Deleting them is a data change.
  3. With "Negotiate the active domain in Drush commands" off, Drush still negotiates lazily. The first call to the domain.negotiator service in a command negotiates the domain from --uri, and from then on configuration reads return its overrides and Domain Config UI saves write them. The documentation now describes this. Making "off" really off changes what code calling the negotiator gets.
  4. The Domain Source outbound path cache keeps every linked entity in memory. The static cache stores the full link options, the entity object included, for the life of the process, so long Drush or sitemap runs grow until they fail. Storing less changes what alter hooks see on a cache hit.
  5. destination_domain is processed while "Allow domain-scoped destination redirects" is off. The request subscriber rewrites the destination whatever the setting says; the setting only gates outbound links. Ignoring the parameter when off changes redirects that sites may use.
  6. A host with a single prefixed domain serves every path. With path prefixes on, shop.example.com with only shop_fr (prefix fr) serves /about from shop_fr, unprefixed; adding shop_de changes /about to the default domain. Matching the prefix for a lone domain moves paths of existing sites.
  7. The default domain can still be saved inactive or deleted through the API, and imported without a default. The beta fixes guard the forms, the routes, the actions and the request subscriber. Refusing these saves, deletes and imports would add exceptions where code works today.

Proposed resolution

Decide for each point whether the behaviour change is worth it, then fix it with a release note, or document the current behaviour.

Remaining tasks

  • A decision per point.

AI-Generated: Yes (Claude Code ran the audit and drafted this issue summary. I reviewed it; each point was shown by a failing kernel test during the audit.)

Comments

mably created an issue.