Project

General

Profile

Actions

Bug #93572

open

Inline Relational Records are multiplicated at multiple simultaneous translations

Added by Marc Wilhelmi over 3 years ago. Updated 7 months ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Localization
Target version:
-
Start date:
2021-02-23
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
11
PHP Version:
7.4
Tags:
inline records, images, gridelements, languages, translation, Localization
Complexity:
Is Regression:
Sprint Focus:

Description

Problem:
While translating an element to multiple languages at the same time, the inline records will multiplicate.
It does not happen with every record, but it can be reproduced in any case with 8 languages.

Testcase:

  1. Use a fresh TYPO3 9.5.x or 10.4.x installation.
  2. create 8 new Languages
  3. create a new page and translate it to all languages (one at a time)
  4. create a new record with an image or child elements (e.g. a gridelement as parent and text as child)
  5. click, in the list module , all translation flags of the records fast with the middle mouse button (open in new tab)
  6. check the new translation records

Sometimes the following error happens:

Localization failed; Source record sys_file_reference:3131 contained a reference to an original record that is not a default record (which is strange)! 

Tested with a Gridelement and a text & media element as child -> Translation of the gridelement got one to four children
Tested with a text & media element and an image -> Translations of the element have one to four images

I know this is an edge case, but it should not occur like this.


Files


Related issues 1 (1 open0 closed)

Related to TYPO3 Core - Bug #80944: Inline records are duplicated upon saving the master recordNew2017-03-06

Actions
Actions #1

Updated by Marc Wilhelmi over 3 years ago

  • Description updated (diff)
Actions #2

Updated by Marc Wilhelmi over 3 years ago

  • TYPO3 Version changed from 10 to 9
Actions #3

Updated by Marc Wilhelmi over 3 years ago

  • TYPO3 Version changed from 9 to 10
Actions #4

Updated by Alexander Opitz over 2 years ago

For me this happens if the inline relation have "behaviour": { "allowLanguageSynchronization": 1 } configured.

The DataMapProcessor::synchronizeInlineRelations tries to syncronize the relations while DataHandler copy is in process. Disabling this function and all went fine.

The DataMapProcessor::synchronizeInlineRelations tries to get the persisted inline relations with `resolvePersistedInlineRelations` (Which are wrong ATM as they got copied from original but will get fixed after the mapping is done in DataHandler) and so they will land inside the $removeIds array and get removed inside this function.
Afterwards new relations are tried to established but they seem to get in something like a loop. They also get attached to wrong reference object.

Minimum requirements to get this happen:

  • default + 2 languages to get destroyed references in table
  • default + 3 languages to get the error message.

Example from the sys_file_reference table after copy command. Yellow marked fields are wrong while synchronizeInlineRelations happens. The 2208 was the original reference they where copied from.

Actions #5

Updated by Astrid Haubold over 1 year ago

I can confirm this behaviour for TYPO3 v11 in a setup with 32 languages.
It occours only for inline fields with allowLanguageSynchronization set to true in TCA as described.
And only when copying in page tool. In list tool copying works as expected.

Actions #6

Updated by Stefan L 7 months ago

Actually i try to resolve the problem by locking the request endpoint to avoid concurrency.
I think that is not the perfect solution but it seems to resolve the problem in my case. See attached patch file.

Actions #7

Updated by Riccardo De Contardi 8 days ago

  • Related to Bug #80944: Inline records are duplicated upon saving the master record added
Actions

Also available in: Atom PDF