Issue Bug Resolved

#107144Step-up authentication leads to duplication of file references

Torben Hansen 07/25/25, 12:02 updated 11/06/26, 09:25

Description

The step-up authentication introduced in #103252 leads to duplication of file references.

How to reproduce:

  • Create a backend user
  • Ensure, the backend user has an avatar image
  • In the list module, copy the backend user to the clipboard
  • Paste the copied backend user
  • The step-up authentication popup comes up. Do not enter a password, but just close it.
  • Edit the backend user. You will notice, that the avatar image is now duplicated and formengine shows the field as invalid (since there are 2 avatar images now)

The problem results in an exception being thrown in \TYPO3\CMS\Backend\Hooks\DataHandlerAuthenticationContext::processDatamap_postProcessFieldArray(), when the step-up requirement is detected. The DataHandler did already process the duplication of the file reference (avatar image in this case). This information is available in the remapStack of dataHandler (see screenshot)

clipboard-202507290827-5r5xf.png

So before throwing an exception, we need to cleanup the remap stack by removing duplicated file references (and other data?).

Reviews 2

Files 1

History 610

  1. Torben Hansen changed subject Step-up authentication duplicates file references Step-up authentication leads to duplication of file references <span data-processor="relativetime" data-value="2025-07-25T12:06:01+00:00" > 07/25/25, 12:06 </span>

  2. Torben Hansen changed attached clipboard-202507290827-5r5xf.png description priority Should have Must have <span data-processor="relativetime" data-value="2025-07-29T06:30:05+00:00" > 07/29/25, 06:30 </span>

  3. Daniel Huf commented <span data-processor="relativetime" data-value="2026-06-04T13:52:44+00:00" > 06/04/26, 13:52 </span>

    This issue seems not to be only on the v14 but already on the v12 (12.4.45)

  4. Oliver Bartsch commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2026-11-06T09:25:13+00:00" > 11/06/26, 09:25 </span>

    Applied in changeset commit:925930ab8741a0f8bb730b782ce244b8d697e9f3.