View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0022792 | mantisbt | api rest | public | 2017-04-23 19:18 | 2018-02-06 21:17 |
Reporter | vboctor | Assigned To | vboctor | ||
Priority | normal | Severity | feature | Reproducibility | N/A |
Status | closed | Resolution | fixed | ||
Product Version | 2.3.1 | ||||
Target Version | 2.11.0 | Fixed in Version | 2.11.0 | ||
Summary | 0022792: Support downloading issue attachments | ||||
Description | At the moment, getting an issue will provide URL links to the attachment. That is not useful for clients since they can't authenticate to download the attachments. However, the current approach would work for web UI javascript since the cookie provides the authentication. | ||||
Tags | No tags attached. | ||||
MantisBT: master a1cd2f65 2018-01-20 20:24 Details Diff |
Support downloading issue attachments via REST API - Get all files for an issue - Get a specific file for an issue Fixes 0022792 |
Affected Issues 0022792 |
|
mod - api/rest/restcore/issues_rest.php | Diff File | ||
add - core/commands/IssueFileGetCommand.php | Diff File | ||
mod - core/file_api.php | Diff File | ||
MantisBT: master 43facfa1 2018-01-21 15:33 Details Diff |
Support `delete_url`, `access`, `icon` for files - Add `delete_url` for attachment information. - Add `icon` for attachment infromation including font awesome icon. - Add `alt` for alt text of the icon. - Add `access` for download and delete access. - Show `download` and `delete` urls when user has access. Fixes 0022792 |
Affected Issues 0022792 |
|
mod - api/rest/restcore/issues_rest.php | Diff File | ||
mod - api/soap/mc_issue_api.php | Diff File | ||
mod - core/commands/IssueFileGetCommand.php | Diff File | ||
MantisBT: master 84349ec8 2018-01-27 21:15 Details Diff |
Remove `download_url` and `delete_url` for files The REST API shouldn’t return such URLs. They are specific for web app and can be calculated without being returned. Fixes 0022792 |
Affected Issues 0022792 |
|
mod - api/rest/restcore/issues_rest.php | Diff File | ||
mod - api/soap/mc_issue_api.php | Diff File | ||
mod - core/commands/IssueFileGetCommand.php | Diff File | ||
MantisBT: master 09306f2f 2018-01-28 08:59 Details Diff |
Remove access and icon info for files Fixes 0022792 |
Affected Issues 0022792 |
|
mod - api/rest/restcore/issues_rest.php | Diff File | ||
mod - api/soap/mc_issue_api.php | Diff File |