View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0009905 | mantisbt | administration | public | 2008-11-27 04:58 | 2019-01-11 06:33 |
Reporter | vboctor | Assigned To | vboctor | ||
Priority | normal | Severity | feature | Reproducibility | have not tried |
Status | closed | Resolution | fixed | ||
Product Version | 1.2.0a2 | ||||
Target Version | 1.2.0rc1 | Fixed in Version | 1.2.0a3 | ||
Summary | 0009905: Simplify the process of moving the attachments folder | ||||
Description | In the case of using DISK for attachments / projects documents, the database stores the full path to the attachments and hence if the folder is moved due to migration or some other reasons, the attachments are broken and it is required to change all the references in the database. The change is as follows:
This issue includes two focus points:
| ||||
Tags | No tags attached. | ||||
This to me looks like we still store path information in the database - given we put all attachments in 1 folder and a project configuration specifies the location of that folder, we should only store the filename itself in the database, and no absolute/relative path information. Paul |
|
Reminder sent to: vboctor Victor, Am I correct with the thoughts I added to bug tracker? Paul |
|
At the moment we store a folder field in the database that I believe is not currently used. I was planning to review that and remove the field as part of a separate issue. For some reason in the past we use to store the full path to the file, then the folder path. Now we only store the file name and the folder path. |
|
MantisBT: master e0d3b361 2008-11-27 04:58 Details Diff |
Fixes 0009905: Simplify the process of moving the attachments folder. |
Affected Issues 0009894, 0009905 |
|
mod - core/print_api.php | Diff File | ||
mod - docbook/adminguide/en/configuration.sgml | Diff File | ||
mod - config_defaults_inc.php | Diff File | ||
mod - core/file_api.php | Diff File | ||
mod - core/utility_api.php | Diff File | ||
mod - file_download.php | Diff File | ||
MantisBT: master 55e3c60b 2008-11-27 05:09 Details Diff |
Fixes 0009905: Simplify the process of moving the attachments folder --- handle existing attachments with full path. |
Affected Issues 0009905 |
|
mod - core/file_api.php | Diff File |