Skip to content

Teams shown as "Undefined" after added by API, can'be used as branch protection rule #34793

Closed
@smoslinux

Description

@smoslinux

Description

After upgrading to 1.24.0, I encountered the following issue:

Creating teams via API:

teamXXX
Undefined

teamXXX-leads
Undefined

These teams are appearing with "Undefined" options under their names. Even though they are added to the project later, I can't select them for any branch rules.

Gitea Version

1.24.0

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

{"id":1252,"name":"xxx-leads","description":"xxx-leads","organization":{"id":6,"name":"projects","full_name":" Projects","email":"","avatar_url":"https://git.xxx.com/avatars/5b873fd5cf586727f01c4e36774f0a99","description":"All xxx development projects","website":"","location":"","visibility":"limited","repo_admin_change_team_access":true,"username":"projects"},"includes_all_repositories":false,"permission":"none","units":["repo.code","repo.issues","repo.ext_issues","repo.wiki","repo.pulls","repo.releases","repo.projects","repo.ext_wiki"],"units_map":{"repo.code":"write","repo.ext_issues":"write","repo.ext_wiki":"write","repo.issues":"write","repo.projects":"write","repo.pulls":"write","repo.releases":"write","repo.wiki":"write"},"can_create_org_repo":false} % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed {"id":1253,"name":"xxx","description":"xxx","organization":{"id":6,"name":"projects","full_name":" Projects","email":"","avatar_url":"https://git.xxx.com/avatars/5b873fd5cf586727f01c4e36774f0a99","description":"All xxx development projects","website":"","location":"","visibility":"limited","repo_admin_change_team_access":true,"username":"projects"},"includes_all_repositories":false,"permission":"none","units":["repo.code","repo.issues","repo.ext_issues","repo.wiki","repo.pulls","repo.releases","repo.projects","repo.ext_wiki"],"units_map":{"repo.code":"write","repo.ext_issues":"write","repo.ext_wiki":"write","repo.issues":"write","repo.projects":"write","repo.pulls":"write","repo.releases":"write","repo.wiki":"write"},"can_create_org_repo":false}

Screenshots

Image Image

Git Version

2.25.1

Operating System

Ubuntu 24

How are you running Gitea?

Docker container

Database

PostgreSQL

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/confirmedIssue has been reviewed and confirmed to be present or accepted to be implementedissue/workaroundit is or has a workaroundtype/bug

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions