View Issue Details

IDProjectCategoryView StatusLast Update
0023653mantisbtapi restpublic2017-12-04 02:17
ReportervboctorAssigned 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
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
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
mod - api/rest/restcore/issues_rest.php Diff File

Issue History

Date Modified Username Field Change
2017-11-18 02:19 vboctor New Issue
2017-11-18 02:19 vboctor Status new => assigned
2017-11-18 02:19 vboctor Assigned To => vboctor
2017-11-18 03:03 vboctor Note Added: 0058221
2017-11-24 19:26 vboctor Changeset attached => MantisBT master cb2a453f
2017-11-24 19:26 vboctor Changeset attached => MantisBT master 46bbf31e
2017-11-24 19:26 vboctor Changeset attached => MantisBT master 7aa72aa6
2017-11-24 19:26 vboctor Status assigned => resolved
2017-11-24 19:26 vboctor Resolution open => fixed
2017-11-24 19:26 vboctor Fixed in Version => 2.9.0
2017-11-27 21:20 vboctor Summary Leverage If-None-Match when updating issues => Leverage If-Match when updating issues
2017-11-27 21:20 vboctor Description Updated View Revisions
2017-12-04 02:17 vboctor Status resolved => closed