jira-api-restclient
jira-api-restclient copied to clipboard
Support avatarId key in IssueType, throw Exception if response is not a JSON
Recent changes in Atlassian broke jira-api-restclient.
- avatarId is now returned in issueTypes (jira-api-restclient threw Exception upon unrecognised key.)
- Accidentally using http://*.atlassian.net instead of https:// will redirect and use GET instead of POST.
- Using GET when POST is required would have returned an HTTP error, but CurlClient returned it as a string. Thus, Api.php failed to parse.
avatarId is now returned in issueTypes (jira-api-restclient threw Exception upon unrecognised key.)
Solved as part of #50.
Accidentally using http://*.atlassian.net instead of https:// will redirect and use GET instead of POST.
That is not the problem, that API client needs to be solving. Also JIRA doesn't force you to use HTTPS.
Using GET when POST is required would have returned an HTTP error, but CurlClient returned it as a string. Thus, Api.php failed to parse.
That is not the problem, that API client needs to be solving. Whoever is using the library must supply valid input. Just guessing from the call result if it's failed or not isn't bulletproof solution.
@jpastoor , overall I think this PR needs to be closed.
Please rebase and solve conflicts.