View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0014718 | mantisbt | attachments | public | 2012-09-19 05:40 | 2014-09-23 18:05 |
Reporter | ErikRoelofs | Assigned To | dregad | ||
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | ||
OS | Windows7 | OS Version | Professional SP1 | ||
Product Version | 1.2.9 | ||||
Target Version | 1.2.12 | Fixed in Version | 1.2.12 | ||
Summary | 0014718: Clone cannot find attachments | ||||
Description | When you view a bug or download an issue, Mantis uses file_normalize_attachment_path() to locate attachments. In situations where the file isn't located where the (These situations can occur when changing the upload dir for a project or application and moving all files, but it also appears that every file in the database has an absolute path and those have all been invalidated when we moved where Mantis was installed) I'd expect the clone tool to locate the file in the same way as the rest of the application, and to place the new file in the same location. | ||||
Steps To Reproduce | 1) Report a new bug, add an attachment | ||||
Additional Information | I'm not sure what the best solution for this problem is, really. But it is very troublesome that we cannot clone issues anymore because we moved our uploads directory. | ||||
Tags | No tags attached. | ||||
The reported error is reproducible in current 1.2.x trunk. When step 4 is executed, the following error message is displayed SYSTEM WARNING (where /tmp/upload/1/ is the old upload path, before it was changed in step 2) |
|
Marking as 'acknowledged' not resolved/closed to track that change gets ported to master-2.0.x branch |
|
MantisBT: master-1.2.x 7f3b0e7c 2012-09-19 05:13 Details Diff |
Cloning issues with attachments fails after upload folder changed With attachments stored on disk, if the project's upload directory changes and the files are moved to the new location, it is no longer possible to clone issues. The file_copy_attachments() function was modified to use the same logic as elsewhere in MantisBT, i.e. rely on file_normalize_attachment_path() to determine the attachment's path. Fixes 0014718 |
Affected Issues 0014718 |
|
mod - core/file_api.php | Diff File | ||
MantisBT: master 27aa2b80 2012-09-19 05:13 Details Diff |
Cloning issues with attachments fails after upload folder changed With attachments stored on disk, if the project's upload directory changes and the files are moved to the new location, it is no longer possible to clone issues. The file_copy_attachments() function was modified to use the same logic as elsewhere in MantisBT, i.e. rely on file_normalize_attachment_path() to determine the attachment's path. Fixes 0014718 |
Affected Issues 0014718 |
|
mod - core/file_api.php | Diff File |