Actions
Bug #75421
closedFaulty change detection in FAL indexer
Status:
Closed
Priority:
Must have
Assignee:
-
Category:
File Abstraction Layer (FAL)
Target version:
-
Start date:
2016-04-06
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:
Description
The FAL indexer currently regards all files as changed, since value and type are checked in detectChangedFilesInStorage():
... if ($indexRecord['modification_date'] !== $modificationTime['mtime'] || $indexRecord['missing']) { $this->filesToUpdate[$fileIdentifier] = $indexRecord; } ...
The modification date returned by SplFileInfo is an integer but the modification_date in the index record is a string, so all files get updated
array(2 items) $indexRecord['modification_date'] => "1455633777" (10 chars) $modificationTime['mtime'] => 1455633777 (integer)
Actions