1
|
Uncaught TYPO3 Exception
|
2
|
#1375955684: You are not allowed to access the given folder?(More information)
|
3
|
|
4
|
TYPO3\CMS\Core\Resource\Exception\InsufficientFolderAccessPermissionsException?thrown in file
|
5
|
xyz/typo3/sysext/core/Classes/Resource/ResourceStorage.php?in line?730.
|
6
|
9 TYPO3\CMS\Core\Resource\ResourceStorage::assureFolderReadPermission(TYPO3\CMS\Core\Resource\Folder)
|
7
|
|
8
|
xyz/typo3/sysext/core/Classes/Resource/ResourceStorage.php:
|
9
|
01865: }
|
10
|
01866: $folder = $this->driver->getFolder($identifier);
|
11
|
01867: $this->assureFolderReadPermission($folder);
|
12
|
01868:
|
13
|
01869: return $folder;
|
14
|
|
15
|
8 TYPO3\CMS\Core\Resource\ResourceStorage::getFolder("uploads/")
|
16
|
|
17
|
xyz/typo3/sysext/core/Classes/Resource/ResourceFactory.php:
|
18
|
00379: }
|
19
|
00380: }
|
20
|
00381: return $this->getStorageObject($storageUid)->getFolder($folderIdentifier);
|
21
|
00382: }
|
22
|
00383:
|
23
|
|
24
|
7 TYPO3\CMS\Core\Resource\ResourceFactory::getFolderObjectFromCombinedIdentifier("uploads/")
|
25
|
|
26
|
xyz/typo3/sysext/core/Classes/Resource/Service/MagicImageService.php:
|
27
|
00057: // @todo Proper exception handling is missing here
|
28
|
00058: if ($targetFolderCombinedIdentifier) {
|
29
|
00059: $magicFolder = $fileFactory->getFolderObjectFromCombinedIdentifier($targetFolderCombinedIdentifier);
|
30
|
00060: }
|
31
|
00061: if (empty($magicFolder) || !$magicFolder instanceof \TYPO3\CMS\Core\Resource\Folder) {
|
32
|
|
33
|
6 TYPO3\CMS\Core\Resource\Service\MagicImageService::getMagicFolder("uploads/")
|
34
|
|
35
|
xyz/typo3/sysext/core/Classes/Resource/Service/MagicImageService.php:
|
36
|
00108: if ($magicImageInfo[3]) {
|
37
|
00109: $targetFileName = 'RTEmagicC_' . PathUtility::pathInfo($imageFileObject->getName(), PATHINFO_FILENAME) . '.' . PathUtility::pathinfo($magicImageInfo[3], PATHINFO_EXTENSION);
|
38
|
00110: $magicFolder = $this->getMagicFolder($targetFolderCombinedIdentifier);
|
39
|
00111: if ($magicFolder instanceof \TYPO3\CMS\Core\Resource\Folder) {
|
40
|
00112: $magicImage = $magicFolder->addFile($magicImageInfo[3], $targetFileName, 'changeName');
|
41
|
|
42
|
5 TYPO3\CMS\Core\Resource\Service\MagicImageService::createMagicImage(TYPO3\CMS\Core\Resource\File, array, "uploads/")
|
43
|
|
44
|
xyz/typo3/sysext/rtehtmlarea/Classes/SelectImage.php:
|
45
|
00239: 'maxH' => $this->magicMaxHeight
|
46
|
00240: );
|
47
|
00241: $magicImage = $magicImageService->createMagicImage($fileObject, $imageConfiguration, $this->getRTEImageStorageDir());
|
48
|
00242: if ($magicImage instanceof \TYPO3\CMS\Core\Resource\FileInterface) {
|
49
|
00243: $filePath = $magicImage->getForLocalProcessing(FALSE);
|
50
|
|
51
|
4 TYPO3\CMS\Rtehtmlarea\SelectImage::insertMagicImage(TYPO3\CMS\Core\Resource\File, NULL, "alfhild_boehringer.jpg", "data-htmlarea-file-uid="361" data-htmlarea-file-table="sys_file"")
|
52
|
|
53
|
xyz/typo3/sysext/rtehtmlarea/Classes/SelectImage.php:
|
54
|
00200: switch ($this->act) {
|
55
|
00201: case 'magic':
|
56
|
00202: $this->insertMagicImage($fileObject, $altText, $titleText, 'data-htmlarea-file-uid="' . $uid . '" data-htmlarea-file-table="' . $table . '"');
|
57
|
00203: die;
|
58
|
00204: break;
|
59
|
|
60
|
3 TYPO3\CMS\Rtehtmlarea\SelectImage::insertImage()
|
61
|
|
62
|
xyz/typo3/sysext/rtehtmlarea/Classes/SelectImage.php:
|
63
|
00087: $this->fileProcessor->init($GLOBALS['FILEMOUNTS'], $GLOBALS['TYPO3_CONF_VARS']['BE']['fileExtensions']);
|
64
|
00088: $this->allowedItems = $this->getAllowedItems('magic,plain,image');
|
65
|
00089: $this->insertImage();
|
66
|
00090: // Creating backend template object:
|
67
|
00091: $this->doc = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Template\\DocumentTemplate');
|
68
|
|
69
|
2 TYPO3\CMS\Rtehtmlarea\SelectImage::init()
|
70
|
|
71
|
xyz/typo3/sysext/rtehtmlarea/Classes/Controller/SelectImageController.php:
|
72
|
00076: if (!$browserRendered) {
|
73
|
00077: $GLOBALS['SOBE']->browser = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Rtehtmlarea\\SelectImage');
|
74
|
00078: $GLOBALS['SOBE']->browser->init();
|
75
|
00079: $modData = $GLOBALS['BE_USER']->getModuleData('select_image.php', 'ses');
|
76
|
00080: list($modData, $store) = $GLOBALS['SOBE']->browser->processSessionData($modData);
|
77
|
|
78
|
1 TYPO3\CMS\Rtehtmlarea\Controller\SelectImageController::main()
|
79
|
|
80
|
xyz/typo3/sysext/rtehtmlarea/mod4/select_image.php:
|
81
|
00047: // Make instance:
|
82
|
00048: $SOBE = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Rtehtmlarea\\Controller\\SelectImageController');
|
83
|
00049: $SOBE->main();
|
84
|
00050: $SOBE->printContent();
|
85
|
00051: ?>
|
86
|
|