#72975If "Copy default content elements" fails because of missing CType access, images get duplicated
Description
There seems to be a bug with access restricted CTypes in 6.2.17:
1. Create content element with FAL image in default language
2. Try to translate the CE with an translator account who doesn’t have
access to this CType (sadly the “Copy default content elment button“
still shows up)
I restrict the access with the “Explicitly allow/deny field values:”-option for a backend user group.
3. TYPO3 tries to create a translated CE but fails with “newlog()]
recordEditAccessInternals() check failed. [ERROR: authMode
“explicitAllow” failed for field “CType” with value…”
4. It’s correct that TYPO3 throws this error, but it seems that this
happens too late. The FAL image got already copied and shows up as duplicate in the default language now
M.e the problem is in \TYPO3\CMS\Core\DataHandling\DataHandler->process_datamap().
The tables which need an update/new entries are processed one after
another and access check happens only for the current table.
So if an error occurs in the last table the already proccessed tables need some kind of rollback.
Reviews 2
Related issues 1
History 914
-
Riccardo De Contardi commented <span data-processor="relativetime" data-value="2017-02-25T17:17:14+00:00" > 02/25/17, 17:17 </span>
-
Oliver Hader changed category Complexity medium <span data-processor="relativetime" data-value="2017-11-15T13:24:06+00:00" > 11/15/17, 13:24 </span>
-
Riccardo De Contardi commented <span data-processor="relativetime" data-value="2019-08-31T17:45:23+00:00" > 08/31/19, 17:45 </span>
This issue still happens on 10.1.0-dev (latest master)
-
Riccardo De Contardi changed parent task #90674 <span data-processor="relativetime" data-value="2020-03-07T17:18:26+00:00" > 03/07/20, 17:18 </span>
-
Riccardo De Contardi commented <span data-processor="relativetime" data-value="2020-03-28T16:54:30+00:00" > 03/28/20, 16:54 </span>
Still present on 10.4.0-dev (latest master)
-
Riccardo De Contardi commented <span data-processor="relativetime" data-value="2023-08-16T21:11:35+00:00" > 08/16/23, 21:11 </span>
Still present on version 13.0.0-dev
-
Riccardo De Contardi commented <span data-processor="relativetime" data-value="2024-04-07T19:11:48+00:00" > 04/07/24, 19:11 </span>
Still present on version 13.1.0-dev
-
Gerrit Code Review pushed patch set 1 for main to change 97295 status
NewUnder Review <span data-processor="relativetime" data-value="2026-11-02T08:47:12+00:00" > 11/02/26, 08:47 </span> -
Gerrit Code Review pushed patch set 2 for main to change 97295 <span data-processor="relativetime" data-value="2026-11-11T09:58:50+00:00" > 11/11/26, 09:58 </span>
-
Gerrit Code Review pushed patch set 3 for main to change 97295 <span data-processor="relativetime" data-value="2026-11-12T16:34:23+00:00" > 11/12/26, 16:34 </span>
-
Gerrit Code Review pushed patch set 1 for 14.3 to change 97582 <span data-processor="relativetime" data-value="2026-11-12T18:30:59+00:00" > 11/12/26, 18:30 </span>
-
Oliver Bartsch commented and changed status
Under ReviewResolved done0 %100 % <span data-processor="relativetime" data-value="2026-11-12T18:35:13+00:00" > 11/12/26, 18:35 </span>Applied in changeset commit:caa573fbd0e50499e8f5142f5f1dfc443219d254.
-
Gerrit Code Review pushed patch set 2 for 14.3 to change 97582 status
ResolvedUnder Review <span data-processor="relativetime" data-value="2026-11-12T18:41:23+00:00" > 11/12/26, 18:41 </span> -
Oliver Bartsch commented and changed status
Under ReviewResolved <span data-processor="relativetime" data-value="2026-11-12T19:05:11+00:00" > 11/12/26, 19:05 </span>Applied in changeset commit:79317a3e35a50daea9029eff7f9900492b52dc05.
I can confirm it with 8.7-dev (latest master)
Steps to reproduce
1) create and editors group and an editor user that has it
2) editors group > explicit deny the “filelist” CType
3) with admin editor, create a page, translate it
4) create inside the page a “filelist” CE and fill it with one file
5) login as editor > try to translate the CE > the file gets duplicated.