View Issue Details

IDProjectCategoryView StatusLast Update
0004437mantisbtbugtrackerpublic2004-11-06 06:55
Reporterjferraz Assigned Tothraxisp  
PrioritynormalSeveritytweakReproducibilityalways
Status closedResolutionfixed 
Product Version0.19.0rc1 
Fixed in Version0.19.1 
Summary0004437: Filenames of uploaded attached files are damaged
Description

When uploading an attachment to a bug, when the name of the file contains at least one '-' (hyphen, minus sign), everything until the first '-' is lost. For example, "test-file.txt" becomes "file.txt".

Steps To Reproduce

I'll attach a "test-file.txt" to this bug.

TagsNo tags attached.
Attached Files
test-file.txt (10 bytes)   
Test file
test-file.txt (10 bytes)   

Relationships

has duplicate 0004690 closedthraxisp modified file name when recovered 
child of 0003987 closedvboctor Mantis 0.19.0 Release 

Activities

thraxisp

thraxisp

2004-08-30 23:47

reporter   ~0007323

Before the storage filenames were obfuscated, a prefix mechanism was used to organize the files. It is no longer needed.

As an aside, the obfuscation of project files was missed.

thraxisp

thraxisp

2004-08-31 08:13

reporter   ~0007331

Fixed in CVS

jferraz

jferraz

2004-09-20 21:07

reporter   ~0007659

Reopening this issue since it was only partially fixed.

Filenames are shown correctly in the list, but the Content-Disposition headers still reports the wrong filename. To reproduce, right-click "test-file.txt" and select "Save target as...". The filename suggested will be just "file.txt".

thraxisp

thraxisp

2004-09-21 13:00

reporter   ~0007669

fixed in CVS.

I rewrote file_get_display_name() to handle both old (000-file) and new (file) style names in the database. The database now stores the correct filename without any prefix as filenames on the disk are obfuscated and unique.