Project

General

Profile

Actions

Feature #94941

open

Exports via export tools sometimes contain previous exports

Added by Lina Wolf over 2 years ago. Updated over 2 years ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Import/Export (T3D)
Target version:
-
Start date:
2021-08-20
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

When I used the export tool to make an export the exported data was saved at public/fileadmin/user_upload/_temp_/importexport

On the next export all files from public/fileadmin/user_upload/_temp_ and their sys_file entries also got exported. Therefore the export contained the previous export as files and grew bigger and bigger...


Related issues 1 (1 open0 closed)

Related to TYPO3 Core - Story #92526: Concept for improved EXT:impexpAccepted2020-10-09

Actions
Actions #1

Updated by Alexander Nitsche over 2 years ago

  • Description updated (diff)
Actions #2

Updated by Alexander Nitsche over 2 years ago

  • Related to Story #92526: Concept for improved EXT:impexp added
Actions #3

Updated by Alexander Nitsche over 2 years ago

In addition, previous exports are often deleted manually in the file system, and leave the sys_file record point to a non-existing file which can break the next export, e.g. when exporting the root of the page tree, with:

(1/1) #1551950301 TYPO3\CMS\Core\Resource\Exception\InvalidHashException

Hash has to be non-empty string.
Actions #4

Updated by Alexander Nitsche over 2 years ago

The outdated sys_file records get even included into the export dump, if they are marked as missing. This is due to a missing match in

\TYPO3\CMS\Impexp\Export::exportAddRecord
=>
\TYPO3\CMS\Impexp\ImportExport::isRecordDisabled

which checks, if the record got disabled according to its TCA disabled column definition. In most tables this is column "hidden" but table "sys_file" does not have any disabled column configuration. Is this a bug? Check for the requirement to prevent inclusion of missing sys_file dataset into the export dump.

Actions

Also available in: Atom PDF