View Issue Details

IDProjectCategoryView StatusLast Update
0023653mantisbtapi restpublic2017-12-04 02:17
Reportervboctor Assigned Tovboctor  
PrioritynormalSeverityfeatureReproducibilityN/A
Status closedResolutionfixed 
Product Version2.8.0 
Target Version2.9.0Fixed in Version2.9.0 
Summary0023653: Leverage `If-Match` when updating issues
Description

If etag is specified via If-Match and it doesn't match issue since it doesn't exist or it was updated since client retrieved the issue, then fail the update with 412 Precondition Failed.

TagsNo tags attached.

Activities

Related Changesets

MantisBT: master cb2a453f

2017-11-18 02:52:17

vboctor

Details Diff
Leverage `If-None-Match` when updating issues

If `If-None-Match` is specified and it doesn’t match latest hash, then fail with `412 Precondition failed`.

Always return the updated `ETag` header.

Fixes 0023653
Affected Issues
0023653
mod - api/rest/restcore/issues_rest.php Diff File
mod - core/bug_api.php Diff File

MantisBT: master 46bbf31e

2017-11-18 03:14:28

vboctor

Details Diff
Remove unnecessary calculation of hash

Fixes 0023653
Affected Issues
0023653
mod - api/rest/restcore/issues_rest.php Diff File

MantisBT: master 7aa72aa6

2017-11-19 03:57:21

vboctor

Details Diff
Update hash calculation when updating issues

- Base etag calculation of hashing of output for get issue.

Fixes 0023653
Affected Issues
0023653
mod - api/rest/restcore/issues_rest.php Diff File