[BUGFIX] Update checksums after file processing 07/17207/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:19:00 +0000 (22:19 +0100)
commit7d88ffce7562bed8793a85b8e04d51e433687891
treea16ceb1f0ea1fd4a7c5b803bc2d8e12c3904e0b6
parentb7942cf8c740838216bb67328b94f72f8f4a58ba
[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
typo3/sysext/core/Classes/Resource/Processing/LocalImageProcessor.php