possible /api/v1/user/repos misbehavior #2732

Closed
opened 2025-11-02 04:45:54 -06:00 by GiteaMirror · 4 comments
Owner

Originally created by @Iced-Sun on GitHub (Jan 10, 2019).

  • Gitea version (or commit ref): 1.6.3
  • Git version: 2.17.1
  • Operating system: ubuntu bionic
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
  • Log gist:

Description

Drone CI uses /api/v1/user/repos to fetch the user repo info. Upon the first time when a repo is created as a fork, say 'user/repoA' -> 'org/repoA', the API does report the newly created 'user/repoA'. Then:

  1. delete 'user/repoA' ( /api/v1/user/repos do also reflects it);
  2. fork 'org/repoA' to 'user/repoA' again.

Now /api/v1/user/repos never reports 'user/repoA' as a repo belongs to 'user'.

Originally created by @Iced-Sun on GitHub (Jan 10, 2019). <!-- 1. Please speak English, this is the language all of us can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/NsatcWJ) or forum (https://discourse.gitea.io). 3. Please take a moment to check that your issue doesn't already exist. 4. Please give all relevant information below for bug reports, because incomplete details will be handled as an invalid report. --> - Gitea version (or commit ref): 1.6.3 - Git version: 2.17.1 - Operating system: ubuntu bionic - Database (use `[x]`): - [ ] PostgreSQL - [ ] MySQL - [ ] MSSQL - [X] SQLite - Can you reproduce the bug at https://try.gitea.io: - Log gist: ## Description Drone CI uses ```/api/v1/user/repos``` to fetch the user repo info. Upon the first time when a repo is created as a fork, say 'user/repoA' -> 'org/repoA', the API does report the newly created 'user/repoA'. Then: 1. delete 'user/repoA' ( ```/api/v1/user/repos``` do also reflects it); 2. fork 'org/repoA' to 'user/repoA' again. Now ```/api/v1/user/repos``` never reports 'user/repoA' as a repo belongs to 'user'.
GiteaMirror added the issue/staleissue/needs-feedback labels 2025-11-02 04:45:54 -06:00
Author
Owner

@stale[bot] commented on GitHub (Mar 11, 2019):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.

@stale[bot] commented on GitHub (Mar 11, 2019): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.
Author
Owner

@lunny commented on GitHub (Mar 11, 2019):

Can you reproduce that on https://try.gitea.io ?

@lunny commented on GitHub (Mar 11, 2019): Can you reproduce that on https://try.gitea.io ?
Author
Owner

@stale[bot] commented on GitHub (May 10, 2019):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.

@stale[bot] commented on GitHub (May 10, 2019): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.
Author
Owner

@stale[bot] commented on GitHub (May 24, 2019):

This issue has been automatically closed because of inactivity. You can re-open it if needed.

@stale[bot] commented on GitHub (May 24, 2019): This issue has been automatically closed because of inactivity. You can re-open it if needed.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#2732