Project

General

Profile

Actions

Bug #72962

open

Epic #72584: sysext:impexp

Avoid garbage upon failed import

Added by Bernhard Kraft almost 9 years ago. Updated almost 7 years ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Import/Export (T3D)
Target version:
-
Start date:
2016-01-27
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

When importing a large page structure any exception which could possibly get thrown will result in an abort of the import. All records which got inserted into the database until then could end up on a wrong page, link to wrong elements, etc. as relations between records are only updated after all records got inserted. The same is true for an import which got aborted because of a PHP script timeout.

This bugfix resolves the problem by introduction DB transactions via the DatabaseConnection class. In the case of a failed import all statements are rolled back and newly created files will get removed.

Actions

Also available in: Atom PDF