[BUGFIX] impexp: Wrong FAL references after import 65/55365/6
authorChristian Kuhn <lolli@schwarzbu.ch>
Mon, 15 Jan 2018 14:54:57 +0000 (15:54 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Mon, 15 Jan 2018 19:50:25 +0000 (20:50 +0100)
commitcd7a8572e6be482e8d7adf1bf25209dd1c44e947
treea3bbd8544e3ce8ce8e9a4caa29a699bff6ede196
parentae465ae2f21089dae1094be04c88c5a8341c1a16
[BUGFIX] impexp: Wrong FAL references after import

Fix a case during ext:impexp FAL uid mapping where
sys_file_reference end up pointing to wrong sys_file
records in case new sys_file uids also already exist
in import file, due to multiple mappings.
Power the patch with a functional test - it fails
without the change in Import.php and is ok with the
change.
See the test method comments for more details
on what exactly is checked here.

Change-Id: I472cad2652e8d6f5d30e4ebc68ff1ae93de71ea1
Resolves: #67188
Releases: master, 8.7, 7.6
Reviewed-on: https://review.typo3.org/55365
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Benjamin Kott <benjamin.kott@outlook.com>
Tested-by: Benjamin Kott <benjamin.kott@outlook.com>
Reviewed-by: Frank Naegler <frank.naegler@typo3.org>
Tested-by: Frank Naegler <frank.naegler@typo3.org>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/impexp/Classes/Import.php
typo3/sysext/impexp/Tests/Functional/Fixtures/DatabaseAssertions/importPagesAndTtContentWithRemappingNewSysFileEntries.csv [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Fixtures/DatabaseImports/sys_file_single_image.xml [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Fixtures/XmlImports/pages-and-ttcontent-with-two-images.xml [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Import/PagesAndTtContentWithImagesInFilledDatabaseTest.php