Project

General

Profile

Actions

Bug #85302

closed

ResourceStorage throws wrong exception on folder move between storages

Added by Mathias Brodala over 6 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Must have
Category:
File Abstraction Layer (FAL)
Target version:
Start date:
2018-06-18
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
9
PHP Version:
Tags:
Complexity:
Is Regression:
Yes
Sprint Focus:
On Location Sprint

Description

The method ResourceStorage::moveFolderBetweenStorages() is currently not implemented and it throws a RuntimeException.

However, the ExtendedFileUtility::func_move() method implies that this should be a BadMethodCallException instead:

            catch (\BadMethodCallException $e) {
                $this->writeLog(3, 1, 126, 'The function to move a file between storages is not yet implemented', []);
                $this->addMessageToFlashMessageQueue('FileUtility.TheFunctionToMoveAFileBetweenStoragesIsNotYetImplemented');
            }

Due to this users get a misleading error messages which hints at write permission problems (FileUtility.DirectoryWasNotMovedTo) instead of the dedicated message which informs that this action is not yet implemented (FileUtility.TheFunctionToMoveAFileBetweenStoragesIsNotYetImplemented).


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Task #54230: Refactor Driver APIClosedSteffen Ritter2013-12-062013-12-31

Actions
Actions

Also available in: Atom PDF