View Issue Details

IDProjectCategoryView StatusLast Update
0007748mantisbtupgradepublic2007-02-01 01:04
ReporterSpeakus Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status acknowledgedResolutionopen 
Product Version1.0.6 
Summary0007748: don't store full path to file in $g_mantis_bug_file_table
Description

cause variable $g_absolute_path_default_upload_folder already have this path

Steps To Reproduce
  1. set $g_file_upload_method = DISK;
  2. set $g_absolute_path_default_upload_folder to one dir
  3. add atach to issue
  4. change $g_absolute_path_default_upload_folder to another dir & move all files from old dir to it.
  5. error - atach from issue is unavailable.
Additional Information

You can say - it is possible to change dir directly on $g_mantis_bug_file_table. But i can say - if change $g_file_upload_method from DISK to DATABASE then files that exist in disk will be unavailable from issue atach link. But here - inconsistency?

TagsNo tags attached.

Activities

vboctor

vboctor

2007-02-01 01:04

manager   ~0013991

I agree that there is no point for including the full path. We need the following:

  • Implement an upgrade step that removed the path if it matches the full path calculated from the attach folder. Note that we have to calculate a full path from the upload path before doing the comparison (unless we currently save the relative path!).
  • Stop including the path in the file name.

Patches are welcome.