[BUGFIX] Update checksums after file processing 08/17208/2
authorHelmut Hummel <helmut.hummel@typo3.org>
Mon, 17 Dec 2012 21:17:01 +0000 (22:17 +0100)
committerHelmut Hummel <helmut.hummel@typo3.org>
Mon, 17 Dec 2012 21:20:09 +0000 (22:20 +0100)
commitae6318c9432a869c2a06c6769b09662bde932c98
tree70615c4a7a8bece7b750550fb83b2dcefd0a09a9
parentabe104938c66a4d9eda4fdb0d36801b86a88db64
[BUGFIX] Update checksums after file processing

When recreating an already processed file the LocalImageProcessor
updates the width, height and filesize of the new image but not
the checksum.

Because of that the file will be deleted in FileProcessingService
when $processedFile->isProcessed() is called. Since the checksum
is wrong this call assumes that the file needs to be recreated and
deletes the "old" file on the go.

This will lead to an exception in this request, when getPublicUrl is
called on this object.

Fixes: #44073
Releases: 6.1, 6.0

Change-Id: Ib2df87b54866262e0092fbb24b4222f0b298e9d6
Reviewed-on: https://review.typo3.org/17207
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel
Reviewed-on: https://review.typo3.org/17208
typo3/sysext/core/Classes/Resource/Processing/LocalImageProcessor.php