-
Bug
-
Resolution: Fixed
-
Low
-
Severity 3 - Minor
-
Created on behalf of the customer from a Community post: https://community.atlassian.com/t5/Jira-questions/Cloud-API-using-quot-latest-quot-wrong-behavior/qaq-p/1081500
While using OAuth 2.0 (3LO) for apps to authenticate REST API calls, everything works fine with v2 and v3 URIs, but if you use 'latest' within the URI you get an error reporting that OAuth 2.0 is not enabled for this method.
For example: on add comment API :
- https://api.atlassian.com/ex/jira/xxx/rest/api/2/issue/xxx/comment the API will succeed
- https://api.atlassian.com/ex/jira/xxx/rest/api/3/issue/xxx/comment the API will succeed with the needed changes on the params.
- https://api.atlassian.com/ex/jira/xxx/rest/api/latest/issue/xxx/comment the API will fail with the following error message "OAuth 2.0 is not enabled for this method."
Expected results:
API authenticates correctly and returns a response
Actual results:
API authentication fails while stating OAuth 2 is not enabled
Workaround:
Do not use latest within the URI and only use v2 or v3.