Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Won't Fix
-
Affects Version/s: 1.9.3
-
Fix Version/s: None
-
Component/s: Files API
-
Labels:None
-
Affected Branches:MOODLE_19_STABLE
Description
Although Moodle cleans these when they are uploaded, if they are uploaded in a zip, then unarchived, the bad file names create files that cannot be erased or renamed by the GUI.
(Hi Tom!)
Still affects us on Moodle 1.9.4+ (and 1.9.5 pretty sure).
Also, this is not just files with two dots, but files with certain non-letter characters in their names.
Got the error (sanitized to remove client name):
[Mon Oct 26 11:54:08 2009] [error] [client 12.34.56.78] PHP Warning: rename(/clients/clientname/14/unmovable_Files/3_th2_Grandama\xef\xbf\xbdsRecordsVocabulary_1D1b-orig.ppt,/clients/clientname/14/unmovable_Files/3_th2_GrandamasRecordsVocabulary_1D1b-orig.ppt) [<a href='function.rename'>function.rename</a>]: No such file or directory in /www/V_19/files/index.php on line 320, referer: http://clientname.mrooms.org/files/index.php?id=14&wdir=/unmovable_Files&file=3_th2_Grandama%C6sRecordsVocabulary_1D1b-orig.ppt&action=rename&choose=
Note the "\xef\xbf\xbd" in the middle of the filename. It could be that this is a PHP problem!
Finally, this is PHP 5.2.9 on Solaris 10