Review 14.3 Merged

97390[BUGFIX] Verify step-up authentication before copying

Oli Bartsch CR +2 V +2 Hard +249 −34 updated 11/06/26, 09:37

Commit message

When a record with fields requiring step-up authentication, such as a
backend user, was copied, DataHandler::copyRecord() copied inline and
file children (e.g. the avatar file reference) to the database first.
Only afterwards the copied record itself was processed through the
datamap, where DataHandlerAuthenticationContext threw the
VerificationRequiredException. The copied references were never
remapped to the new record and remained attached to the source record,
which then had duplicated file references, regardless of whether the
step-up dialog was cancelled or confirmed.

DataHandlerAuthenticationContext now additionally implements
processCmdmap_preProcess() and verifies required grants for "copy"
commands before the copied record and its children are written.
Non-repeatable grants are still consumed by the datamap hook only.

Review

  • Code review CR +2 Done
    • Oli Bartsch +2
  • Verified V +2 Done
    • Oli Bartsch +2
    • core-ci +1 CI

Issues 1

Files 4

Review log 34

  1. Oli Bartsch uploaded patch set 1 11/06/26, 09:16

  2. core-ci voted on patch set 1 V +1 11/06/26, 09:31 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/113476

  3. Oli Bartsch voted on patch set 1 CR +2 V +2 11/06/26, 09:37

  4. Oli Bartsch merged patch set 2 11/06/26, 09:37