Project

General

Profile

Actions

Bug #54312

closed

Logical error in indexer task

Added by Alexander Stehlik over 10 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
File Abstraction Layer (FAL)
Target version:
Start date:
2013-12-10
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
5.4
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

In the processChangedAndNewFiles() method in the Indexer class there seems to be a logical error which causes a fatal PHP error because an invalid call to getFileObject().

At the beginning there is a check:

if ($data == NULL) {

The data variable is not modified and then passed to the getFileObject() method:

$fileObject = $this->getResourceFactory()->getFileObject($data['uid'], $data);

Since data is NULL and does obviously not contain a UID this method call fails.

As far as I can see the code needs to look like that:

$fileObject = $this->getResourceFactory()->getFileObject($fileIndexEntry['uid'], $fileIndexEntry);
Actions

Also available in: Atom PDF