Project

General

Profile

Actions

Bug #97770

closed

Better error message for RuntimeException while uploading a file

Added by Stefan Froemken almost 2 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
File Abstraction Layer (FAL)
Target version:
Start date:
2022-06-15
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
11
PHP Version:
7.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Hello,

if I upload a file in fileadmin I get following error message:

Uploaded file could not be moved! There might be a problem with write permissions in "10"?

I have checked the folder permissions. 775 is more than enough to write files there.
After a reload of the folder in filelist module I see that the image was uploaded.

I found following lines in Core:

} catch (\RuntimeException $e) {
    $this->writeLog(SystemLogFileAction::UPLOAD, SystemLogErrorClassification::USER_ERROR, 100, 'Uploaded file could not be moved! Write-permission problem in "%s"?', [$targetFolderObject->getIdentifier()]);
    $this->addMessageToFlashMessageQueue('FileUtility.UploadedFileCouldNotBeMoved', [$targetFolderObject->getIdentifier()]);
}

There is no line logging the real error. I have changed these lines on my local machine and the error is now:

RuntimeException: Invalid path or filename for Tika application jar: /kunden/12345_1234/rp-hosting/1234567/2345678/typo3cms/tools/tika-app-1.28.1.jarUpload of file "IMAGE_Fehler_csv.png" failed!

This is a completely different error and has nothing to do with renaming problems.

Nice greetings and I wish you all a long warm weekend

Stefan

Actions #1

Updated by Georg Ringer almost 2 years ago

  • Status changed from New to Accepted
Actions #2

Updated by Gerrit Code Review almost 2 years ago

  • Status changed from Accepted to Under Review

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

Actions #3

Updated by Georg Ringer over 1 year ago

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

Updated by Gerrit Code Review over 1 year ago

  • Status changed from Resolved to Under Review

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

Actions #5

Updated by Georg Ringer over 1 year ago

  • Status changed from Under Review to Resolved
Actions #6

Updated by Benni Mack over 1 year ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF