Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(release): if a release already exists, return http/409 Conflict (SRX-627DCD) #1150

Merged
merged 1 commit into from
Nov 17, 2023

Conversation

bjoern-michaelsen-freiheit
Copy link
Contributor

@bjoern-michaelsen-freiheit bjoern-michaelsen-freiheit commented Nov 17, 2023

release endpoint now returns http/409 instead of http/200 if a manifest already exists

@bjoern-michaelsen-freiheit bjoern-michaelsen-freiheit merged commit d160efd into main Nov 17, 2023
9 checks passed
@bjoern-michaelsen-freiheit bjoern-michaelsen-freiheit deleted the bm/releases branch November 17, 2023 15:29
@@ -223,7 +223,7 @@ func (s Server) HandleRelease(w http.ResponseWriter, r *http.Request, tail strin
return
}
if ok && s.Code() == codes.AlreadyExists {
w.WriteHeader(http.StatusOK)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Uha, are you sure?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants