-
Type:
Bug
-
Resolution: Invalid
-
Priority:
Low
-
Component/s: API Framework - Authentication
-
None
-
Severity 3 - Minor
-
20
Issue Summary
When using the endpoint to delete a deploy key (https://api.bitbucket.org/2.0/repositories/<workspace>/<repository>/deploy-keys/<keyID> with OAuth the system returns this error even with the correct ID:
{
"type": "error",
"error": {
"message": "No DeployKey matches the given query."
}
}
When using another authentication method (such as app password), the endpoint works correctly.
Steps to Reproduce
- Make the call to https://api.bitbucket.org/2.0/repositories/<workspace>/<repository>/deploy-keys/<keyID> using OAuth as the authentication method.
Expected Results
The deploy key being deleted.
Actual Results
The system raises a 404 saying that the deploy ID is incorrect.
Workaround
Use the same endpoint with a different authentication method.