Moodle

Can't erase or rename course file with bad extension name (i.e. file..doc)

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor 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.

Activity

Hide
Jeffrey Silverman added a comment -

(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

Show
Jeffrey Silverman added a comment - (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
Hide
Michael de Raadt added a comment -

Thanks for reporting this issue.

We have detected that this issue has been inactive for over a year has been recorded as affecting versions that are no longer supported.

If you believe that this issue is still relevant to current versions (2.1 and beyond), please comment on the issue. Issues left inactive for a further month will be closed.

Michael d;

lqjjLKA0p6

Show
Michael de Raadt added a comment - Thanks for reporting this issue. We have detected that this issue has been inactive for over a year has been recorded as affecting versions that are no longer supported. If you believe that this issue is still relevant to current versions (2.1 and beyond), please comment on the issue. Issues left inactive for a further month will be closed. Michael d; lqjjLKA0p6
Hide
Michael de Raadt added a comment -

I'm closing this issue as it appears to have become inactive and is probably not relevant to a current supported version. If you are encountering this problem or one similar, please launch a new issue.

Show
Michael de Raadt added a comment - I'm closing this issue as it appears to have become inactive and is probably not relevant to a current supported version. If you are encountering this problem or one similar, please launch a new issue.

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: