View Issue Details

IDProjectCategoryView StatusLast Update
0032247mantisbtapi restpublic2023-10-31 16:32
Reportervboctor Assigned Tovboctor  
PrioritynormalSeverityfeatureReproducibilityN/A
Status closedResolutionfixed 
Product Version2.25.5 
Target Version2.26.0Fixed in Version2.26.0 
Summary0032247: REST API for deleting API token
Description

Add an API to delete an API token.

TagsNo tags attached.

Activities

vboctor

vboctor

2023-03-26 00:31

manager   ~0067572

PR: https://github.com/mantisbt/mantisbt/pull/1875

atrol

atrol

2023-04-05 17:14

developer   ~0067604

There is new code that breakes PHP 7.0 compatibility and requires PHP 7.3 because of trailing comma in function calls https://wiki.php.net/rfc/trailing-comma-function-calls
https://github.com/mantisbt/mantisbt/commit/7ac2e8e03fe1c390a91399e70c240d2b612637c8

vboctor

vboctor

2023-04-08 20:33

manager   ~0067612

I have fixed the issue and pushed to master. I'll check the other PRs for the same.

Related Changesets

MantisBT: master 3ddb2c79

2023-03-26 00:01

vboctor


Details Diff
Add UserTokenDeleteCommand

Fixes 0032247
Affected Issues
0032247
mod - core/api_token_api.php Diff File
add - core/commands/UserTokenDeleteCommand.php Diff File

MantisBT: master 8696c7e6

2023-03-26 00:02

vboctor


Details Diff
Update Web UI to use UserTokenDeleteCommand

Fixes 0032247
Affected Issues
0032247
mod - api_token_revoke.php Diff File
mod - api_tokens_page.php Diff File

MantisBT: master e00acf62

2023-03-26 00:27

vboctor


Details Diff
Update REST API to use UserTokenDeleteCommand

Fixes 0032247
Affected Issues
0032247
mod - api/rest/restcore/users_rest.php Diff File
mod - api/soap/mc_api.php Diff File
mod - core/commands/UserTokenDeleteCommand.php Diff File
mod - core/constant_inc.php Diff File

MantisBT: master d9409a09

2023-04-08 20:31

vboctor


Details Diff
Remove trailing commas for PHP 7 compatibility

Fixes 0032247
Affected Issues
0032247
mod - core/commands/UserTokenCreateCommand.php Diff File
mod - core/commands/UserTokenDeleteCommand.php Diff File