Project

General

Profile

Actions

Bug #55614

closed

FAL: FileIndexingTask fails to execute in TYPO3 6.2 (current master)

Added by Björn Jacob almost 11 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
File Abstraction Layer (FAL)
Target version:
-
Start date:
2014-02-03
Due date:
% Done:

100%

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

Description

I've got 2 TYPO3 6.2 installations which are pretty new and clean. I didn't delete any file mounts . I've uploaded some images via the filelist module (which was a problem discussed here). All uploaded images are listed by the filelist module. When using the page module and editing a tt_content element I don't see the uploaded images (or just one out of four...).

So I remembered the problem discussed in #44105 and created a new FileIndexingTask. When starting the scheduler task I get the following error message:

Die Ausführung von Task "Datei-Abstraktionsschicht: Indizierungs-Auftrag (scheduler)" ist fehlgeschlagen mit folgender Meldung: Task failed to execute successfully. Class: TYPO3\CMS\Scheduler\Task\FileIndexingTask, UID: 2

After that I thought I should provide an error message in English so I switched the TYPO3 backend to English. The error message stays the same but there's something slightly different:

Execution of task "[OBSOLETE] File Abstraction Layer: Indexing job (scheduler)" failed with the following message: Task failed to execute successfully. Class: TYPO3\CMS\Scheduler\Task\FileIndexingTask, UID: 2

As you can see the task is marked as "OBSOLETE". So I've got 2 problems:

  • My uploaded files are not shown when editing tt_content (I didn't test other content tables).
  • The task seems to be obsolete and is not working as expected.

BTW. I'm using the current master as of today.


Files

patch.diff (769 Bytes) patch.diff Ralf Zimmermann, 2014-02-03 13:47

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #55359: Image files with uppercase file extension don't work in element browser and content elementsClosed2014-01-27

Actions
Actions #1

Updated by Ralf Zimmermann almost 11 years ago

The problem is located the FileExtensionFilter

This filter check a lower case file extension array (jpg, gif...) against the extension of the files located in the given folder (pathinfo($fileName, PATHINFO_EXTENSION)).
If there are files with uppercase extension like JPG, the filter won't match and return FALSE. The files are not listed.

It works with the attached patch, but i am not sure about side effects

Actions #2

Updated by TRITUM GmbH almost 11 years ago

This was already a problem and fixed in #50568. The code has changed on 6.2 and now the problem occurs again.

Actions #4

Updated by Frans Saris almost 11 years ago

  • Status changed from New to Accepted

Could you push a patch that adds the strtolower again?

Gr. Frans

Actions #5

Updated by Gerrit Code Review almost 11 years ago

  • Status changed from Accepted to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/27359

Actions #6

Updated by Gerrit Code Review almost 11 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/27359

Actions #7

Updated by Gerrit Code Review almost 11 years ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/27359

Actions #8

Updated by Ralf Zimmermann almost 11 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #9

Updated by Johannes Busch almost 11 years ago

It appears to me that this bug is nocht 100% resolved. It also throws this exeption when my filenames have capital letters for example My-Uplaod.jpg .
I think the patch just resovles the issus with the file extensions.

Actions #10

Updated by Renzo Bauen over 10 years ago

I do not agree that this Issue is solved! (TYPO3 6.2.0 from download source on typo3.org).

If you read the given error carefully, then you can see, that it states, that the FileIndexingTask has failed.
I looked at typo3/sysext/scheduler/Classes/Task/FileIndexingTask.php

Line 91ff:
/** * Function execute from the Scheduler * * @return boolean TRUE on successful execution, FALSE on error
*/
public function execute() {
return FALSE;
}

If you set "return TRUE" the FileIndexingTask doesn't throw any error anymore!
But, with this code, i am not sure, if it does anything at all??? Is there really any index updated by this scheduler task? Or its just a placebo for the user?

Best Regards
Renzo

Actions #11

Updated by Frans Saris over 10 years ago

I think you are looking at the deprecated scheduler task.

Gr. Frans

Actions #12

Updated by Renzo Bauen over 10 years ago

Ok, in Germen, this task is not marked as obsolet!
Thanks for your hint.
Best Regard, Renzo

Actions #13

Updated by Caspar Wahl-vom Bruch over 10 years ago

I got this error today. But I used this updated script. There seems to be a new reason. The Issue isn't solved, indeed.

Actions #14

Updated by Frans Saris over 10 years ago

Are you dure you run the new scheduler job?

There are now 3 FAL jobs, were 1 is obsolute.

Gr. Frans

Actions #15

Updated by Kurt Gusbeth almost 8 years ago

I get this error with TYPO3 6.2.29:

Die Ausführung von Task "Datei-Abstraktionsschicht: Indizierungs-Auftrag (scheduler)" ist fehlgeschlagen mit folgender Meldung: Task failed to execute successfully. Class: TYPO3\CMS\Scheduler\Task\FileIndexingTask, UID: 6

Which sheduler job should be runned before?

Actions #16

Updated by Frans Saris almost 8 years ago

Don't think it a different task needs to run. But isn't there any more info about why the task has failed? Maybe in the sys_log. Or else enable debug in install tool and run the task again

Actions #17

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF