GET /api/v1/user/teams returns null #9417

Closed
opened 2025-11-02 08:38:09 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @Oliver-Hanikel on GitHub (Aug 17, 2022).

Description

My user (20) is in an organization (publicorg) and in this organization in a team (Frontend). I would expect /api/v1/user/teams to return the team as described in the swagger, but instead it just returns null. It doesn't matter whether the user is a public member or not. Using this endpoint would simplify this pull request a bit.

Gitea Version

1.17.0 built with GNU Make 4.3, go1.18.4 : bindata, timetzdata, sqlite, sqlite_unlock_notify

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

https://gist.github.com/Oliver-Hanikel/a279a0057dab0880a866b3180dd55ff2

Screenshots

image
image

Git Version

No response

Operating System

No response

How are you running Gitea?

I am using the official 1.17.0 docker image from docker hub.

Database

SQLite

Originally created by @Oliver-Hanikel on GitHub (Aug 17, 2022). ### Description My user (20) is in an organization (publicorg) and in this organization in a team (Frontend). I would expect `/api/v1/user/teams` to return the team as described in the swagger, but instead it just returns `null`. It doesn't matter whether the user is a public member or not. Using this endpoint would simplify [this pull request](https://github.com/oauth2-proxy/oauth2-proxy/pull/1759) a bit. ### Gitea Version 1.17.0 built with GNU Make 4.3, go1.18.4 : bindata, timetzdata, sqlite, sqlite_unlock_notify ### Can you reproduce the bug on the Gitea demo site? No ### Log Gist https://gist.github.com/Oliver-Hanikel/a279a0057dab0880a866b3180dd55ff2 ### Screenshots ![image](https://user-images.githubusercontent.com/68649699/185180248-a2dcd9fc-159e-49a8-8e20-731ad1bba168.png) ![image](https://user-images.githubusercontent.com/68649699/185180595-589753bd-7f2e-474c-ba5a-b6216d73f1ac.png) ### Git Version _No response_ ### Operating System _No response_ ### How are you running Gitea? I am using the official 1.17.0 docker image from docker hub. ### Database SQLite
GiteaMirror added the type/bug label 2025-11-02 08:38:09 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#9417