[BUGFIX] Only persist processedFile if processing was successful 26/39826/2
authorFrans Saris <franssaris@gmail.com>
Mon, 25 May 2015 07:19:24 +0000 (09:19 +0200)
committerMarkus Klein <markus.klein@typo3.org>
Sat, 30 May 2015 22:26:08 +0000 (00:26 +0200)
commit4d8d215cc3a7dc522f3e62efa08655b082bf5ccc
tree06e3f1ebde85d1f80368bc8371424cdaf1a3af5c
parentb391f1d58eb756de0cd669d49162073f442e14dd
[BUGFIX] Only persist processedFile if processing was successful

Due to multiple reasons (for instance target folder is not writable)
the processing of a file can fail.

This change prevents wrong data being saved in sys_file_processedfile
when processing failed.

Resolves: #67094
Releases: master, 6.2
Change-Id: I6051d503ba74629dc6493b7bac9f28bf320aeb66
Reviewed-on: http://review.typo3.org/39826
Reviewed-by: Frank Nägler <typo3@naegler.net>
Tested-by: Frank Nägler <typo3@naegler.net>
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
typo3/sysext/core/Classes/Resource/ProcessedFile.php
typo3/sysext/core/Classes/Resource/Processing/LocalImageProcessor.php
typo3/sysext/core/Classes/Resource/Service/FileProcessingService.php