Bug #92806
Uncatched exception when copying a folder to the same parent folder
0%
Description
How to reproduce:
- Create a folder
user_upload/test
- Copy this folder to the clipboard
- Go to
user_upload/
- Paste the folder from the clipboard
What happens?
- TYPO3 crashes with #1476107295 TYPO3\CMS\Core\Error\Exception since
mkdir()
failed.
Expected:
- A (nice) error message explaining you can't copy a folder to the same parent folder (or something like that).
- Alternatively: show the duplication dialog and allow to rename copied folder to a unique name (or cancel the operation)
Files
Updated by Richard Haeser 7 days ago
Can confirm in current master as well. I would opt to keep it the same as when you do the same action with a file as the current bugfix. We might want to check if this is something we can enhance in general.
See attached screenshot
Updated by Richard Haeser 7 days ago
- Assignee set to Richard Haeser
I always struggle getting the image in the text...
But I'm on the issue itself!
Updated by Xavier Perseguers 7 days ago
Richard Haeser wrote in #note-4:
I always struggle getting the image in the text...
That's a bad idea to upload files with blank spaces. But I know how easy it happens. The trick in that case is to replace the blank spaces with %20 when trying to embed the image :)
Updated by Gerrit Code Review 7 days ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/67442
Updated by Gerrit Code Review 7 days ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/67442
Updated by Gerrit Code Review 7 days ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/67442
Updated by Gerrit Code Review 3 days ago
Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/67442
Updated by Gerrit Code Review 1 day ago
Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/67442
Updated by Gerrit Code Review about 6 hours ago
Patch set 6 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/67442
Updated by Gerrit Code Review about 5 hours ago
Patch set 7 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/67442