[BUGFIX] Unset internal properties of processed file on delete 07/52107/7
authorHelmut Hummel <typo3@helhum.io>
Mon, 20 Mar 2017 18:28:12 +0000 (19:28 +0100)
committerHelmut Hummel <typo3@helhum.io>
Fri, 14 Jul 2017 23:23:16 +0000 (01:23 +0200)
commite87ebbd60b1ab6034e0372c5b572c0058d822604
tree3570caad233a1630a72da7ac17f37a3afd77b468
parent71e68294ca8d4d5f7e60e1ec315417eef97576e4
[BUGFIX] Unset internal properties of processed file on delete

When a processed file is deleted because it needs reprocessing, set the
internal deleted property to true and unset its properties as well, as
they are stale anyway.

This is important as in the later processing it is checked whether the
current object is persisted (which it is not anymore) and an SQL update
is triggered, which then fails leading to another processing run in
subsequent requests.

When unsetting the internal properties a new row will be inserted
in the same request.

Resolves: #80359
Releases: 7.6, 8.7, master
Change-Id: I39eec59ed4ac071883ff97eab7018d1ede92fb95
Reviewed-on: https://review.typo3.org/52107
Reviewed-by: Mathias Schreiber <mathias.schreiber@typo3.com>
Reviewed-by: Frans Saris <franssaris@gmail.com>
Tested-by: Mathias Schreiber <mathias.schreiber@typo3.com>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Reviewed-by: Henning Liebe <typo3@h3nning.de>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Frans Saris <franssaris@gmail.com>
Reviewed-by: Helmut Hummel <typo3@helhum.io>
Tested-by: Helmut Hummel <typo3@helhum.io>
typo3/sysext/core/Classes/Resource/AbstractFile.php
typo3/sysext/core/Classes/Resource/ProcessedFile.php
typo3/sysext/core/Classes/Resource/ResourceStorage.php