Skip to content

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

Closed

Description

@iondune

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.

Activity

  1. added this to the 1.11.6 milestone on May 12, 2020
  2. zeripath commented on May 12, 2020

    @zeripath
    Contributor

    Fixed by #11339 and the breakout backport #11381

  3. locked and limited conversation to collaborators on Nov 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions