Organization is null from GET team API #9232

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

Originally created by @arnWolff on GitHub (Jul 18, 2022).

Description

When i call API endpoint /api/v1/teams/{id}, the organization property is null.
I would expect it to return Oraganization entity as value.
Same result if called from an Admin account or user member of this team.

Is this expected behaviour?

I cannot reproduce this issue on official website because i cannot create organization there.

Gitea Version

1.16.4

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

Ubuntu Server 20.04

How are you running Gitea?

Running Gitea on local server.

Database

SQLite

Originally created by @arnWolff on GitHub (Jul 18, 2022). ### Description When i call API endpoint `/api/v1/teams/{id}`, the organization property is `null`. I would expect it to return Oraganization entity as value. Same result if called from an Admin account or user member of this team. Is this expected behaviour? _I cannot reproduce this issue on official website because i cannot create organization there._ ### Gitea Version 1.16.4 ### Can you reproduce the bug on the Gitea demo site? No ### Log Gist _No response_ ### Screenshots _No response_ ### Git Version _No response_ ### Operating System Ubuntu Server 20.04 ### How are you running Gitea? Running Gitea on local server. ### Database SQLite
GiteaMirror added the type/bugmodifies/api labels 2025-11-02 08:32:52 -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#9232