Project

General

Profile

Actions

Bug #52765

closed

Image upload fails to be indexed

Added by Xavier Perseguers over 10 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
Start date:
2013-10-13
Due date:
% Done:

100%

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

Description

When uploading an image in any directory, the following flash message pops up:

1: Uploaded file could not be moved! Write-permission problem in "/"?

but the image is properly uploaded (although post-processor hooks do not work, see below).

This is caused by the indexer trying to write image metadata into DB and storing its height into a DB column "height" which does not exist anymore in master.

Relevant code is causing the issue and preventing post-processor to receive the uploaded file info:

$fileObject = $targetFolderObject->addUploadedFile($fileInfo, $conflictMode);
$this->getIndexerService()->indexFile($fileObject, FALSE);
$resultObjects[] = $fileObject;

Method ->indexFile() throws an exception which is catched and an error message which has nothing to do with the actual error is shown. As such $resultObjects is not extended with the uploaded file and post-processor hooks will get an empty array of uploaded files and will thus not be able to do anything.

In this case, I would expect the indexer to index file after the $resultObjects being extended because the file was actually uploaded and the indexer should not prevent a post-processor to do its job, even if it crashes.

Example of post-processor: EXT:image_autoresize


Related issues 1 (0 open1 closed)

Has duplicate TYPO3 Core - Bug #52751: Indexer Service tries to write 'height' to sys_fileClosed2013-10-13

Actions
Actions

Also available in: Atom PDF