Project

General

Profile

Actions

Bug #14859

closed

Deleting directories ending in a dot in fileadmin-module impossible

Added by Dominic Brander over 19 years ago. Updated almost 16 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2005-07-13
Due date:
% Done:

0%

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

Description

test/foo.foo = foo.foo can be deleted
test/.foo = .foo can be deleted
test/foo. = .foo can NOT be deleted

the last case should be checked when creating new directories.

I checked this on 3.7 and 3.8 on different Linux-platforms.
(issue imported from #M1280)


Files

1280.diff (1006 Bytes) 1280.diff Administrator Admin, 2009-01-30 15:06
1280_v2.diff (1.02 KB) 1280_v2.diff Administrator Admin, 2009-01-30 17:20

Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #18575: Target was not a directoryClosedDmitry Dulepov2008-04-06

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

Actions
Actions #1

Updated by Wolfgang Klinger over 19 years ago

Error message:

2: Target seemed not to be a directory! (Shouldn't happen here!)

Actions #2

Updated by Ernesto Baschny over 19 years ago

From class.t3lib_basicfilefunc.php:

/**
 * Removes all dots, slashes and spaces after a path...
 *
 * @param       string          Input string
 * @return      string          Output string
/
function cleanDirectoryName($theDir) {
return ereg_replace('[\/\. ]
$','',$this->rmDoubleSlash($theDir));
}

Not sure why a dot is being removed from the end of a directory. But a solution would simply be to remove the "\." from the regexp.

Actions #3

Updated by Karsten Dambekalns over 18 years ago

This is still an issue with 4.0.0. I second not removing the dot, it doesn't do any harm and after all it is allowed when creating a folder.

Once you created it, neither deleting nor renaming are possible, though... sop you're stuck unless you have direct access to the machine or work around the issues differently.

Actions #4

Updated by Sebastian Kurfuerst over 18 years ago

keyword:t3dd06

Actions #5

Updated by Steffen Gebert almost 16 years ago

Attached a patch and sent it to core list.

Actions #6

Updated by Steffen Gebert almost 16 years ago

Attached updated version. This bug only affects systems with
GLOBALS['TYPO3_CONF_VARS']['BE']['forceCharset'] == 'utf-8' && $GLOBALS['TYPO3_CONF_VARS']['SYS']['UTF8filesystem']

The patch moves deletion of trailing dots to the beginning of cleanFileName (b/c in utf-8 environments this code line would never be executed).

Actions #7

Updated by Marcus Krause almost 16 years ago

Won't fix.
Nevertheless, with 0010313 fileadmin-module will no longer be able to create such directories.

Actions

Also available in: Atom PDF