Project

General

Profile

Actions

Bug #51649

closed

Long paths to files cause errors

Added by Christian Buelter over 10 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
File Abstraction Layer (FAL)
Target version:
-
Start date:
2013-09-02
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.1
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

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.

Related issues 1 (0 open1 closed)

Is duplicate of TYPO3 Core - Bug #52168: FAL does not support long pathsClosed2013-09-21

Actions
Actions

Also available in: Atom PDF