Error 500 when migrating a repository if the name already exists #1922

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

Originally created by @tforgione on GitHub (Jun 11, 2018).

  • Gitea version (or commit ref): I'm on master, but I can reproduce the error on try.gitea.io
  • Git version: 2.11.0
  • Operating system: Raspbian
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes
    • No
    • Not relevant
  • Log:
    2018/06/11 18:09:20 [...routers/repo/repo.go:146 handleCreateError()] [E] MigratePost: repository already exists [uname: tforgione, name: model-converter-python]
    

Description

Basically, trying to migrate a repository on a repository whose name already exists gives error 500.

Screenshots

capture du 2018-06-11 20 11 22
capture du 2018-06-11 20 11 25

I hope this helps.

Originally created by @tforgione on GitHub (Jun 11, 2018). - Gitea version (or commit ref): I'm on master, but I can reproduce the error on [try.gitea.io](https://try.gitea.io) - Git version: 2.11.0 - Operating system: Raspbian - Database (use `[x]`): - [x] PostgreSQL - [ ] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [x] Yes - [ ] No - [ ] Not relevant - Log: ``` 2018/06/11 18:09:20 [...routers/repo/repo.go:146 handleCreateError()] [E] MigratePost: repository already exists [uname: tforgione, name: model-converter-python] ``` ## Description Basically, trying to migrate a repository on a repository whose name already exists gives error 500. ## Screenshots ![capture du 2018-06-11 20 11 22](https://user-images.githubusercontent.com/3015402/41249455-7a96031c-6db4-11e8-951e-f910fe242e58.png) ![capture du 2018-06-11 20 11 25](https://user-images.githubusercontent.com/3015402/41249461-7d193a5a-6db4-11e8-8339-3e2eb86ef21e.png) I hope this helps.
GiteaMirror added the issue/duplicate label 2025-11-02 04:17:54 -06:00
Author
Owner

@techknowlogick commented on GitHub (Jun 11, 2018):

@tforgione Thanks for the bug report. I'm closing this as it is a dupe of #4140

@techknowlogick commented on GitHub (Jun 11, 2018): @tforgione Thanks for the bug report. I'm closing this as it is a dupe of #4140
Author
Owner

@tforgione commented on GitHub (Jun 11, 2018):

Ah, sorry, should've looked better...

@tforgione commented on GitHub (Jun 11, 2018): Ah, sorry, should've looked better...
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#1922