Project

General

Profile

Actions

Bug #17121

closed

Directories with a dot at the end of the name are created in fileadmin but inaccessible

Added by Christian Lerrahn about 17 years ago. Updated about 13 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
-
Target version:
-
Start date:
2007-03-15
Due date:
% Done:

0%

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

Description

If I create a directory with a dot at the end of the directory name, the directory will be created but then be inaccessible in the BE. If I click on it, nothing happens. If I try to upload or create file, I'm told that the target does not exist. From 'Rename' I can tell that the reason for that is, that the dot is stripped from the filename so that the backend does not look for a directory called 'test.' but a directory 'test'.

(issue imported from #M5225)


Files

0005225.patch (485 Bytes) 0005225.patch Administrator Admin, 2007-03-16 18:32
bug_5225.diff (662 Bytes) bug_5225.diff Administrator Admin, 2007-03-16 19:02

Related issues 3 (0 open3 closed)

Has duplicate TYPO3 Core - Bug #17134: Foldername ending with a dot @ filelistClosedOliver Hader2007-03-20

Actions
Has duplicate TYPO3 Core - Bug #18003: folder containg a dotClosedOliver Hader2008-01-16

Actions
Is duplicate of TYPO3 Core - Bug #19944: Fileadmin-module wrongly allows creation of trailing dot directories on UTF8 FSClosedFrancois Suter2009-01-30

Actions
Actions #1

Updated by Oliver Hader about 17 years ago

I can confirm this. It is based on t3lib_basicfilefunc::cleanDirectoryName which removes also dots of directory names. I think only dots at the beginning of a directory name e.g. ".svn" or ".." should be removed.
See the attached (fast) patch and check if the new preg_match is correct.

Actions #2

Updated by Michael Stucki about 17 years ago

I think your regex is wrong. According to the function header, it should remove "all dots, slashes and spaces after a path". However, since the dots are obviously a mistake by design, this is the only thing that should be changed in the regex. Directory names with a dot at the beginning are still allowed, it just means they are hidden on Unix systems.

See attached patch.

Actions #3

Updated by Oliver Hader about 17 years ago

Okay, if this only concerns the end of a string, it looks good.
+1 on reading the patch

Actions #4

Updated by Stefano Kowalke over 15 years ago

This issue is still actual.

I created a Folder called 'Dot.', which was displayed as 'Dot.' in the fileadmin of T3 and the OS filesystem. Nothing happens If i click to the folder. If i want to rename the folder, the same behavior as in bug description appears.

Looks like that T3 create a folder with a dot and after that its not able to found this folder on the OS filesystem.

Need to cut the dot before save the folder to OS filesystem.

Figured out with Kubuntu Linux 4.08

Actions #5

Updated by Chris topher about 14 years ago

With current trunk those directories can no longer be created; no matter if on a UTF-8 filesystem or not.

Actions #6

Updated by Susanne Moog about 13 years ago

  • Target version deleted (4.4.0)
Actions

Also available in: Atom PDF