organization listed multiple times when creating a repository #5329

Closed
opened 2025-11-02 06:21:44 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @mnazarov on GitHub (Apr 30, 2020).

Description

If an organization has multiple teams with 'Create repository' permission, then whenever a user belonging to several such teams tries to create a repository they see the organization name listed multiple times under "Owner" (see screenshot). The number of times matches the number of teams they are member of.
This is probably a bug, but at the same time it would be cool if it would show team names here, and the repository would be created and added to that team automatically...

Screenshots

create

Originally created by @mnazarov on GitHub (Apr 30, 2020). - Gitea version (or commit ref): 1.11.4 - Operating system: ubuntu 18.04 - Database (use `[x]`): - [x] PostgreSQL - Can you reproduce the bug at https://try.gitea.io: - [x] Yes - see e.g. https://try.gitea.io/org/testMaxOrg/teams 2 teams each with 'Create repository' permission ## Description If an organization has multiple teams with 'Create repository' permission, then whenever a user belonging to several such teams tries to create a repository they see the organization name listed multiple times under "Owner" (see screenshot). The number of times matches the number of teams they are member of. This is probably a bug, but at the same time it would be cool if it would show team names here, and the repository would be created and added to that team automatically... ## Screenshots ![create](https://user-images.githubusercontent.com/2838666/80704920-c70ec800-8ae5-11ea-841d-6e709ee2cc3a.PNG)
GiteaMirror added the type/bug label 2025-11-02 06:21:44 -06:00
Author
Owner

@CirnoT commented on GitHub (May 4, 2020):

Should be reopened, the mentioned PR does NOT fix this issue.

@CirnoT commented on GitHub (May 4, 2020): Should be reopened, the mentioned PR does NOT fix this issue.
Author
Owner

@6543 commented on GitHub (May 5, 2020):

I found the problem: GetOrgsCanCreateRepoByUserID return dubble entrys on described case

@6543 commented on GitHub (May 5, 2020): I found the problem: GetOrgsCanCreateRepoByUserID return dubble entrys on described case
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#5329