Cannot delete deploy keys when using OAuth via API 2.0

XMLWordPrintable

    • 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

      1. 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.

              Assignee:
              Unassigned
              Reporter:
              Vinicius (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: