orgs/{name}/teams?page={page} return 200 with null\n as content instead of empty list #12181

Closed
opened 2025-11-02 10:01:19 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @YannMagnin on GitHub (Dec 11, 2023).

Description

When I try to get teams' information using GET on /orgs/{org}/teams?page={page} with a page that do not exists, the returned status is always 200 with null\n as raw data instead of an empty list.

Gitea Version

1.21.1

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

Linux Mint, EndeavourOS

How are you running Gitea?

Official binaries, and running from systemd and command-line

Database

SQLite

Originally created by @YannMagnin on GitHub (Dec 11, 2023). ### Description When I try to get teams' information using `GET` on `/orgs/{org}/teams?page={page}` with a page that do not exists, the returned status is always `200` with `null\n` as raw data instead of an empty list. ### Gitea Version 1.21.1 ### Can you reproduce the bug on the Gitea demo site? No ### Log Gist _No response_ ### Screenshots _No response_ ### Git Version _No response_ ### Operating System Linux Mint, EndeavourOS ### How are you running Gitea? Official binaries, and running from systemd and command-line ### Database SQLite
GiteaMirror added the type/bug label 2025-11-02 10:01:19 -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#12181