Bug #52765
closedImage upload fails to be indexed
100%
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
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
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
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
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
Updated by Steffen Ritter over 10 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 9c41457a9add794979479d9765900a12ad1fcf01.
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
Updated by Riccardo De Contardi over 6 years ago
- Status changed from Resolved to Closed