Bug #17121
closed
Directories with a dot at the end of the name are created in fileadmin but inaccessible
Added by Christian Lerrahn over 17 years ago.
Updated over 13 years ago.
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
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.
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.
Okay, if this only concerns the end of a string, it looks good.
+1 on reading the patch
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
With current trunk those directories can no longer be created; no matter if on a UTF-8 filesystem or not.
- Target version deleted (
4.4.0)
Also available in: Atom
PDF