[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>
Showing
- typo3/sysext/impexp/Classes/Import.php 5 additions, 4 deletionstypo3/sysext/impexp/Classes/Import.php
- typo3/sysext/impexp/Tests/Functional/Fixtures/DatabaseAssertions/importPagesAndTtContentWithRemappingNewSysFileEntries.csv 21 additions, 0 deletions...importPagesAndTtContentWithRemappingNewSysFileEntries.csv
- typo3/sysext/impexp/Tests/Functional/Fixtures/DatabaseImports/sys_file_single_image.xml 19 additions, 0 deletions...tional/Fixtures/DatabaseImports/sys_file_single_image.xml
- typo3/sysext/impexp/Tests/Functional/Fixtures/XmlImports/pages-and-ttcontent-with-two-images.xml 741 additions, 0 deletions...xtures/XmlImports/pages-and-ttcontent-with-two-images.xml
- typo3/sysext/impexp/Tests/Functional/Import/PagesAndTtContentWithImagesInFilledDatabaseTest.php 50 additions, 0 deletions...mport/PagesAndTtContentWithImagesInFilledDatabaseTest.php
Please register or sign in to comment