-
Bug
-
Resolution: Fixed
-
Minor
-
2.1.1
-
centos 5.x x86_64, postgres 8.4, apache 2.2.x php 5.3.x
-
PostgreSQL
-
MOODLE_21_STABLE
-
MOODLE_25_STABLE
-
MDL-29749-master-4th -
-
What happens:
-------------------------------------------
Let's assume we have a filename with multiple dots at the end of the filename before the extension, like for example foo_bar_e.g..txt
(the e.g. has a dot at the end and the dot of the extension follows). After the fileupload with the upload repository, the file is stored as foo_bar_e.gtxt.
Expected Behaviour:
-------------------------------------------
Filenames with mutliple dots should be uploaded faithfully (as long as the filename is valid, of course).
Remark:
-------------------------------------------
This is especially a problem if the multiple dots are near the extension so that the extension changes. If - for example - an extension changes from .a..pdf to .apdf, then the file is no longer identified as a pdf file and users are left confused.
Replication steps:
a.) Generate a file with multiple dots near the extension (examples: foo..bar.gz or foor_bar.e.g..pdf)
b.) Upload using the upload repository
c.) find the extension changed