Skip to content

Conversation

@RAYs3T
Copy link
Contributor

@RAYs3T RAYs3T commented Jul 10, 2018

The GitLab API returns 200 in the case of an update, not 201.
closes #221

The GitLab API returns 200 in the case of an update.
@gmessner gmessner merged commit 085373d into gitlab4j:master Jul 10, 2018
@gmessner
Copy link
Collaborator

@RAYs3T
Thanks for the fix.

@gmessner
Copy link
Collaborator

@RAYs3T
Just a heads up.

I did a scan of all put() calls in the project and found 2 additional places that CREATED needed to be changed to OK. You might want to pull an update.

@RAYs3T
Copy link
Contributor Author

RAYs3T commented Jul 10, 2018

@gmessner
Not sure if this is true for all the other calls since it is not documented in the GitLab API what kind of status code is returned. But i think so.

Thanks for the fast merge!

@gmessner
Copy link
Collaborator

@RAYs3T
Actually, it is documented here: https://docs.gitlab.com/ee/api/#status-codes

@RAYs3T
Copy link
Contributor Author

RAYs3T commented Jul 11, 2018

@gmessner Missed that one :3 - but well then we are fine with it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

updateIssueNote throws an GitLabApiException with the status text "OK" (status code check does not match)

2 participants