Issue Bug Closed

#51649Long paths to files cause errors

Christian Buelter 09/02/13, 14:48 updated 11/25/13, 14:45

Description

If you use very long paths to store your images and files, functions will break, e. g. in the frontend the image rendering and click-enlarge function and in the backend the “edit” function.

How to reproduce this bug:

  • Install a fresh TYPO3 CMS 6.1.3 introduction package
  • Create the following folder structure using the “File” module in the “fileadmin” storage:
    /this_is_my_first_folder/
    ->this_is_my_second_folder/
    —>this_is_my_third_folder/
    —->this_is_my_fourth_folder/
    ——>this_is_another_really_long_folder_name_which_may_cause_problems/
  • Upload an image to the deepest folder.
  • Add that folder to an image content element in the frontend.

The image will not be rendered, neither the thumbnail in the backend. Also, if you try to edit that file record in the backend, you’ll get an Exception. A part of file name in the error message is cut off.

Uncaught TYPO3 Exception
#1314516809: File /this_is_my_first_folder/this_is_my_second_folder/this_is_my_third_folder/this_is_my_fourth_folder/this_is_another_really_long_folder_name_which_may_cause_problems/15_20_12---Waterfall--Pistyll-Rhaead does not exist. (More information)

InvalidArgumentException thrown in file
[...]introductionpackage-6.1.3/typo3_src-6.1.3/typo3/sysext/core/Classes/Resource/Driver/LocalDriver.php in line 237.

Reviews 0

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