[BUGFIX] Follow-up for cleanup FAL exception messages 47/40247/3
authorMarc Bastian Heinrichs <typo3@mbh-software.de>
Mon, 15 Jun 2015 11:51:43 +0000 (13:51 +0200)
committerFrank Nägler <frank.naegler@typo3.org>
Mon, 15 Jun 2015 12:10:32 +0000 (14:10 +0200)
Fixes a fatal error introduced on cleaning up the exception
messages.

Resolves: #67462
Relates: #64613
Releases: master
Change-Id: Ia1911d56a39283a32b591bc051b0e95292ced206
Reviewed-on: http://review.typo3.org/40247
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez <typo3@scripting-base.de>
Reviewed-by: Frank Nägler <frank.naegler@typo3.org>
Tested-by: Frank Nägler <frank.naegler@typo3.org>
typo3/sysext/core/Classes/Resource/ResourceStorage.php

index 9f467d6..efd19bb 100644 (file)
@@ -911,7 +911,7 @@ class ResourceStorage implements ResourceStorageInterface {
                }
                // Check if user is allowed to rename
                if (!$this->checkFileActionPermission('rename', $file)) {
-                       throw new Exception\InsufficientUserPermissionsException('You are not allowed to rename files. File given."' . $file . '"', 1319219351);
+                       throw new Exception\InsufficientUserPermissionsException('You are not allowed to rename files. File given: "' . $file->getName() . '"', 1319219351);
                }
                // Check if the user is allowed to write to folders
                // Although it would be good to check, we cannot check here if the folder actually is writable