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 #1

Updated by Gerrit Code Review over 10 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/24726

Actions #2

Updated by Gerrit Code Review over 10 years ago

Patch set 2 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/24726

Actions #3

Updated by Gerrit Code Review over 10 years ago

Patch set 3 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/24726

Actions #4

Updated by Gerrit Code Review over 10 years ago

Patch set 4 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/24726

Actions #5

Updated by Steffen Ritter over 10 years ago

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

Updated by David Bruchmann almost 10 years ago

Just downloaded the current Version 6.2.3 and the problem still exists.

Additionally the Error-Message "Oops, an error occurred! Metadata can only be retrieved for indexed files." is shown even when clicking a folder with 'not indexed files' or "About TYPO3 CMS" or "About Modules".

As far as I see the changes of the patch are already included and even changed already again partially.

OS: Windows Vista
PHP Version: 5.4.16

Actions #7

Updated by Riccardo De Contardi over 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF