Project

General

Profile

Actions

Bug #57906

closed

Calling delete() on a file-object throws exception

Added by Stefan Froemken over 10 years ago. Updated about 6 years ago.

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

100%

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

Description

Hello Core-Team,

I'm calling delete() on a file-object in one of my extbase extensions. This results in:

There is no entry in the $TCA array for the table "sys_file_processedfile". This means that the function enableFields() is called with an invalid table name as argument.

I just searched the TCA and I can confirm that there is no entry for sys_file_processedfile.
You call following line in ProcessedFileRepository:

$whereClause = 'original=' . (int)$file->getUid() . $this->getWhereClauseForEnabledFields();

In my opinion the part with enableFields is wrong here.

Stefan

Actions

Also available in: Atom PDF