Review 14.3 Merged

96005[BUGFIX] Skip open document tracking on CLI

Benni Mack CR +2 V +2 Easy +7 −0 updated 09/23/26, 18:47

Commit message

TrackOpenDocumentsEventListener reacts to every DataHandler write to keep
the recent documents list of the backend user up to date. Its guard only
checks whether the current request is a backend request, which is true on
CLI as well. The "_cli_" backend user never gets a user session, though,
so reading its module data raises

  Call to a member function getIdentifier() on null

in AbstractUserAuthentication::getModuleData() and aborts the command. Any
DataHandler write on CLI is affected: upgrade wizards, scheduler tasks and
custom commands alike.

There is no recent documents list to maintain on CLI, so the listener now
bails out early in that case, the same way BackendUtility::setUpdateSignal()
already does.

Review

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

Issues 1

Files 1

Review log 34

  1. Benni Mack commented on patch set 1 09/23/26, 16:42

    Cherry Picked from branch main.
  2. core-ci voted on patch set 1 V +1 09/23/26, 16:51 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/109091

  3. Benni Mack voted on patch set 1 CR +2 V +2 09/23/26, 18:47

  4. Benni Mack merged patch set 2 09/23/26, 18:47