[BUGFIX] Only persist processedFile if processing was successful 96/39696/5
authorFrans Saris <franssaris@gmail.com>
Mon, 25 May 2015 07:19:24 +0000 (09:19 +0200)
committerFrank Nägler <typo3@naegler.net>
Sat, 30 May 2015 14:15:13 +0000 (16:15 +0200)
commitf7b02cf0cbf88b947378a9c41234a8375b1b5747
tree3b2f10c0d641483712b61a6bb5b4359d1b29de8f
parentc5a78657045cfee313b9df4c22e3fbbe8c75070d
[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/39696
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
Reviewed-by: Frank Nägler <typo3@naegler.net>
Tested-by: Frank Nägler <typo3@naegler.net>
typo3/sysext/core/Classes/Resource/ProcessedFile.php
typo3/sysext/core/Classes/Resource/Processing/LocalImageProcessor.php
typo3/sysext/core/Classes/Resource/Service/FileProcessingService.php