Project

General

Profile

Actions

Bug #45748

closed

retrieveFileOrFolderObject does not support folder.

Added by Ivan Dharma Kartolo about 11 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
File Abstraction Layer (FAL)
Target version:
Start date:
2013-02-22
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.0
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Hi,

I have an old extension which uploads files to uploads/tx_myextension/.
The extension uses the old t3lib_extFileFunctions. The upload process fails with the following exception: "TYPO3\CMS\Core\Resource\Exception\FileDoesNotExistException"

in function retrieveFileOrFolderObject (ResourceFactory.php) if the parameter given is only a folder path (which comes from t3lib_extFileFunctions::func_upload) will trigger getFileObjectFromCombinedIdentifier(). in the function the getFile will be called, which will return false, since only a folder path is given. In the LocalDriver.php there's a getFolder method which checks if the folder exists.

I'll try to make a patch in the next day.

thanks.

Actions #1

Updated by Gerrit Code Review about 11 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/18690

Actions #2

Updated by Gerrit Code Review about 11 years ago

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

Actions #3

Updated by Gerrit Code Review about 11 years ago

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

Actions #4

Updated by Gerrit Code Review about 11 years ago

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

Actions #5

Updated by Gerrit Code Review about 11 years ago

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

Actions #6

Updated by Gerrit Code Review about 11 years ago

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

Actions #7

Updated by Gerrit Code Review about 11 years ago

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

Actions #8

Updated by Gerrit Code Review about 11 years ago

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

Actions #9

Updated by Ivan Dharma Kartolo about 11 years ago

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

Updated by Riccardo De Contardi over 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF