Bug #48894
closed
Adding file to bodytext crashes
Added by Claus Harup over 11 years ago.
Updated about 6 years ago.
Category:
File Abstraction Layer (FAL)
Description
Having a simple text CE, marking a word and make the word a link to a file the editor has not uploaded crashes....
See attachements...
Files
- Status changed from New to Accepted
Confirmed in current 6.2-dev. Debugging output after hitting the Upload files button shows:
Uncaught TYPO3 Exception
#1320575630: Folder None - new link! does not exist. (More information)
TYPO3\CMS\Core\Resource\Exception\FolderDoesNotExistException thrown in file
D:\TYPO3\TYPO3 Core Git\typo3\sysext\core\Classes\Resource\ResourceStorage.php in line 1641.
6 TYPO3\CMS\Core\Resource\ResourceStorage::getFolder("None - new link!")
D:\TYPO3\TYPO3 Core Git\typo3\sysext\core\Classes\Resource\ResourceFactory.php:
00362: }
00363: }
00364: return $this->getStorageObject($storageUid)->getFolder($folderIdentifier);
00365: }
00366:
5 TYPO3\CMS\Core\Resource\ResourceFactory::getFolderObjectFromCombinedIdentifier("None - new link!")
D:\TYPO3\TYPO3 Core Git\typo3\sysext\core\Classes\Resource\ResourceFactory.php:
00336: } else {
00337: // only the local path
00338: return $this->getFolderObjectFromCombinedIdentifier($input);
00339: }
00340: }
4 TYPO3\CMS\Core\Resource\ResourceFactory::retrieveFileOrFolderObject("None - new link!")
D:\TYPO3\TYPO3 Core Git\typo3\sysext\recordlist\Classes\Browser\ElementBrowser.php:
01943: if ($str && $this->act == 'file' || $this->act == 'folder') {
01944: try {
01945: $fileObject = \TYPO3\CMS\Core\Resource\ResourceFactory::getInstance()->retrieveFileOrFolderObject($str);
01946: if (is_object($fileObject)) {
01947: $str = $fileObject->getIdentifier();
3 TYPO3\CMS\Recordlist\Browser\ElementBrowser::printCurrentUrl("None - new link!")
D:\TYPO3\TYPO3 Core Git\typo3\sysext\rtehtmlarea\Classes\BrowseLinks.php:
00500: $content .= $this->doc->getTabMenuRaw($menuDef);
00501: // Adding the menu and header to the top of page:
00502: $content .= $this->printCurrentUrl($this->curUrlInfo['info']) . '
';
00503: // Depending on the current action we will create the actual module content for selecting a link:
00504: switch ($this->act) {
2 TYPO3\CMS\Rtehtmlarea\BrowseLinks::main_rte()
D:\TYPO3\TYPO3 Core Git\typo3\sysext\rtehtmlarea\Classes\Controller\BrowseLinksController.php:
00096: list($modData, $store) = $GLOBALS['SOBE']->browser->processSessionData($modData);
00097: $GLOBALS['BE_USER']->pushModuleData('browse_links.php', $modData);
00098: $this->content = $GLOBALS['SOBE']->browser->main_rte();
00099: }
00100: }
1 TYPO3\CMS\Rtehtmlarea\Controller\BrowseLinksController::main()
D:\webserver\xampp\htdocs\typo3_src\typo3\sysext\rtehtmlarea\mod3\browse_links.php:
00050: // Make instance:
00051: $SOBE = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Rtehtmlarea\\Controller\\BrowseLinksController');
00052: $SOBE->main();
00053: $SOBE->printContent();
00054: ?>
- Status changed from Accepted to Resolved
This is resolved with #48219 and will be included in the next 6.1 version
- Status changed from Resolved to Closed
Also available in: Atom
PDF