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

[Bug] [Api] /orgs/{:orgname}/repos POST endpoint is broken #11331

Closed
2 of 7 tasks
iondune opened this issue May 8, 2020 · 1 comment · Fixed by #11339
Closed
2 of 7 tasks

[Bug] [Api] /orgs/{:orgname}/repos POST endpoint is broken #11331

iondune opened this issue May 8, 2020 · 1 comment · Fixed by #11339
Labels
Milestone

Comments

@iondune
Copy link

iondune commented May 8, 2020

Description

I am having trouble using the POST /orgs/<org_name>/repos api endpoint. This is the response I'm getting (with http status 422):

{"message":"org does not exist [id: 0, name: ]","url":"https://try.gitea.io/api/swagger"}

But if I switch to the deprecated /org/<org_name>/repos endpoint, it works just fine. It looks to me like the issue is that CreateOrgRepo is looking for the :org parameter here while the parameter in the route is named :orgname here. The deprecated route is working because it uses :org.

@zeripath
Copy link
Contributor

Fixed by #11339 and the breakout backport #11381

@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
4 participants