#107144Step-up authentication leads to duplication of file references
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
-
Torben Hansen changed Is Regression 1 <span data-processor="relativetime" data-value="2025-07-25T12:03:17+00:00" > 07/25/25, 12:03 </span>
-
Torben Hansen changed description <span data-processor="relativetime" data-value="2025-07-25T12:05:03+00:00" > 07/25/25, 12:05 </span>
-
Torben Hansen changed subject
Step-up authentication duplicates file referencesStep-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> -
Torben Hansen changed attached clipboard-202507290827-5r5xf.png description priority
Should haveMust have <span data-processor="relativetime" data-value="2025-07-29T06:30:05+00:00" > 07/29/25, 06:30 </span> -
Gerrit Code Review pushed patch set 1 for main to change 97292 status
NewUnder Review <span data-processor="relativetime" data-value="2026-11-01T22:19:36+00:00" > 11/01/26, 22:19 </span> -
Gerrit Code Review pushed patch set 2 for main to change 97292 <span data-processor="relativetime" data-value="2026-11-01T22:36:47+00:00" > 11/01/26, 22:36 </span>
-
Gerrit Code Review pushed patch set 3 for main to change 97292 <span data-processor="relativetime" data-value="2026-11-01T23:02:17+00:00" > 11/01/26, 23:02 </span>
-
Gerrit Code Review pushed patch set 1 for 14.3 to change 97390 <span data-processor="relativetime" data-value="2026-11-06T09:16:59+00:00" > 11/06/26, 09:16 </span>
-
Oliver Bartsch commented and changed status
Under ReviewResolved done0 %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.
This issue seems not to be only on the v14 but already on the v12 (12.4.45)