View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0019879 | mantisbt | attachments | public | 2015-06-24 09:11 | 2016-08-15 09:02 |
Reporter | dregad | Assigned To | dregad | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | 1.2.0 | ||||
Target Version | 1.2.20 | Fixed in Version | 1.2.20 | ||
Summary | 0019879: Download page triggers errors when file does not exist | ||||
Description | When file_download.php is called with a non-existent file ID, the page generates PHP notices/warnings (and an error when type=bug) | ||||
Steps To Reproduce | Where 99999 is a file attachment ID that does not exist :
| ||||
Tags | No tags attached. | ||||
MantisBT: master-1.2.x 2a042504 2015-06-24 04:24 Details Diff |
Trigger generic error when downloading non-existent attachment This prevents PHP warnings and notices as the code attempts to process an empty result set from the query. Backport from b96e49d5e6d43c2fa89d894222a89b308485d1d8 Fixes 0019879 |
Affected Issues 0019879 |
|
mod - file_download.php | Diff File | ||
MantisBT: master b96e49d5 2015-06-24 04:24 Details Diff |
Trigger generic error when downloading non-existent attachment This prevents PHP warnings and notices as the code attempts to process an empty result set from the query. Fixes 0019879 |
Affected Issues 0019879 |
|
mod - file_download.php | Diff File |