Issue Bug Closed

#48894Adding file to bodytext crashes

Claus Harup 06/05/13, 17:30 updated 10/02/18, 12:14

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…

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.

Files 2

History 3

  1. Jigal van Hemert commented and changed status New Accepted 06/09/13, 11:58

    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: ?>
  2. Wouter Wolters commented and changed status Accepted Resolved 07/13/13, 21:18

    This is resolved with #48219 and will be included in the next 6.1 version

  3. Benni Mack changed status Resolved Closed 10/02/18, 12:14