View Issue Details

IDProjectCategoryView StatusLast Update
0015868mantisbtattachmentspublic2013-05-27 16:40
Reportercas Assigned Todregad  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionunable to reproduce 
Product Version1.2.15 
Summary0015868: Filename length is not checked
Description

It appears possible to upload a file with a length longer as defined in the DB.
Definition is 83 positions but one can load a file with a longer name.
This leads to truncation of the file which on it's turn can lead to poor responce of the mantis system due to missing extension.

Steps To Reproduce

Simply upload a file with a name of more than 83 positions.

Additional Information

Suggest to increase fieldlength to 128.

TagsNo tags attached.

Activities

dregad

dregad

2013-05-16 10:17

developer   ~0036875

Hi cas,

I am not able to reproduce this at 83 chars.

The DB field size in mantisbug(file|project)_table (filename) is VARCHAR(250). I was able to successfully upload a file with a name of that length without issues.

Although I do confirm that beyond 250 chars, the filename is silently truncated.

cas

cas

2013-05-16 12:42

reporter   ~0036877

Strange, I checked here on my test system with a fresh install and that fully matches your story.
The database I encountered this problem with, has been upgraded multiple times over the years. Actually was surprised to find a length of 83 anyway.
Possibly some upgrade did not fully finish in the past on our end.
So please resolve this non-issue (I have no problem with truncating at 250!).