Bug #102130
closedT3D data structure with sys_file_reference entries and missing files makes import fail with type check errors
100%
Description
From:
Using a T3D file with a structure as below, containing sys_file_reference records with missing files, will make the T3D importer fail because if missing array indices and assumptions that will fail, and not import any content. The core should more "gracefully" fail on this to at least be able to import partial data (with error messages)
Errors yielded were:
Sun, 08 Oct 2023 18:27:27 +0000 [WARNING] request="418b1cee8d80d" component="TYPO3.CMS.Core.Error.ErrorHandler": Core: Error handler (BE): PHP Warning: Undefined array key "8e79286a8efa8a13de373312028aee83" in /srv/www/typo3_src-12.4.6/typo3/sysext/impexp/Classes/ImportExport.php line 721 Sun, 08 Oct 2023 18:27:27 +0000 [WARNING] request="418b1cee8d80d" component="TYPO3.CMS.Core.Error.ErrorHandler": Core: Error handler (BE): PHP Warning: Trying to access array offset on value of type null in /srv/www/typo3_src-12.4.6/typo3/sysext/impexp/Classes/ImportExport.php line 738
[records] => Array
(
[sys_file_reference] => Array
(
[22] => Array
(
[uid] => 22
[pid] => 1
[title] => 1024_Kirchhofen_Kirchturm.jpg
[size] => 910
[rels] => Array
(
[sys_file:22] => Array
(
[id] => 22
[table] => sys_file
)
)
[softrefs] => Array
(
[link:typolink:4463318f6facace53c799ec9ac121f98:0] => Array
(
[field] => link
[spKey] => typolink
[matchString] => fileadmin/kartan.de/bilder/St_Georgen/1024_Kirchhofen_Kirchturm.jpg
[subst] => Array
(
[type] => file
[relFileName] => fileadmin/kartan.de/bilder/St_Georgen/1024_Kirchhofen_Kirchturm.jpg
[tokenID] => 4463318f6facace53c799ec9ac121f98
[tokenValue] => fileadmin/kartan.de/bilder/St_Georgen/1024_Kirchhofen_Kirchturm.jpg
)
[error] => File does not exist!
[file_ID] => 8e79286a8efa8a13de373312028aee83
)
)
)
Updated by Gerrit Code Review about 1 year ago
- Status changed from New to Under Review
Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/81389
Updated by Gerrit Code Review about 1 year ago
Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/81389
Updated by Gerrit Code Review about 1 year ago
Patch set 3 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/81389
Updated by Gerrit Code Review about 1 year ago
Patch set 4 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/81389
Updated by Gerrit Code Review about 1 year ago
Patch set 5 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/81389
Updated by Gerrit Code Review about 1 year ago
Patch set 6 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/81389
Updated by Gerrit Code Review about 1 year ago
Patch set 7 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/81389
Updated by Garvin Hicking about 1 year ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 9c6bdf6d3a557e756ef2e103e5c2ad13c8dff673.