[TASK] Check and use current file hash and size on export 61/30061/3
authorMarc Bastian Heinrichs <typo3@mbh-software.de>
Tue, 13 May 2014 14:26:11 +0000 (16:26 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Tue, 3 Jun 2014 21:14:36 +0000 (23:14 +0200)
commit8454a6988c1d5ca765b6a3ffff43fbbadd642fcf
treed1fee485ae2eeedfdb5b4f88e129829370edd8d8
parent44b18664c9d65820eb4f5ab520585932ee387f5e
[TASK] Check and use current file hash and size on export

On creating exports the file hash and size is used from the
sys_file table. Since this could be not up-to-date in real live
projects, those files fail to be imported.

To prevent this, use the correct data for the export and show
an error to the user.

Resolves: #58761
Releases: 6.2
Change-Id: I7aacc6f00c52bc01c753af4ee32202a9219c02a1
Reviewed-on: https://review.typo3.org/30061
Reviewed-by: Bernd Niehues
Tested-by: Bernd Niehues
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
typo3/sysext/impexp/Classes/ImportExport.php
typo3/sysext/impexp/Tests/Functional/Export/PagesAndTtContentWithImages/ExportTest.php
typo3/sysext/impexp/Tests/Functional/Fixtures/Database/sys_file_corrupt.xml [new file with mode: 0644]