[TASK] Implement conflict handling into renameFile() 48/52048/14
authorAnja Leichsenring <aleichsenring@ab-softlab.de>
Wed, 15 Mar 2017 09:33:10 +0000 (10:33 +0100)
committerAndreas Fernandez <typo3@scripting-base.de>
Sat, 18 Mar 2017 18:46:32 +0000 (19:46 +0100)
commitb608afbd590b2a1454555377503bf5bc28e33c11
tree296fd4bf84eb3e60591f28f14e2b2ad0b209519f
parentbafc8232283cad4d8285cc83ae338b325e72e15a
[TASK] Implement conflict handling into renameFile()

Upon DuplicationBehaviour::RENAME and ~::REPLACE, the according function
is called for the given file. For DuplicationBehaviour::CANCEL, the same
exception as before is thrown.

For a better UX, the existance of a possible duplicate is checked and a
modal window is rendered to the users to let them choose the desired
action if a duplicate was found.

Resolves: #80282
Releases: master
Change-Id: Ie67f04184a232fc23a3cda648692783771ba5171
Reviewed-on: https://review.typo3.org/52048
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Frank Nägler <frank.naegler@typo3.org>
Tested-by: Frank Nägler <frank.naegler@typo3.org>
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez <typo3@scripting-base.de>
13 files changed:
Build/tsconfig.json
typo3/sysext/backend/Classes/Controller/File/FileController.php
typo3/sysext/backend/Classes/Controller/File/RenameFileController.php
typo3/sysext/backend/Resources/Private/Templates/File/RenameFile.html
typo3/sysext/backend/Resources/Private/TypeScript/RenameFile.ts [new file with mode: 0644]
typo3/sysext/backend/Resources/Public/JavaScript/RenameFile.js [new file with mode: 0644]
typo3/sysext/core/Classes/Resource/AbstractFile.php
typo3/sysext/core/Classes/Resource/FileInterface.php
typo3/sysext/core/Classes/Resource/FileReference.php
typo3/sysext/core/Classes/Resource/ResourceStorage.php
typo3/sysext/core/Classes/Utility/File/ExtendedFileUtility.php
typo3/sysext/core/Tests/Unit/Resource/ResourceStorageTest.php
typo3/sysext/lang/Resources/Private/Language/locallang_core.xlf