Closed yasuokav closed 4 years ago
I'm able to replicate this by clicking the migrate button multiple times, perhaps when buttons such as that are clicked they could then be disabled.
I'm able to replicate this by clicking the migrate button multiple times, perhaps when buttons such as that are clicked they could then be disabled.
This is another problem because it will immediately send the POST request twice and display a 500 error page instead of sending the second POST request after a few minutes.
This issue can be closed after #6200 is merged.
I assume it has been fixed.
[x]
):... (migrating other repositories)
[Macaron] 2019-02-26 10:49:40: Started POST /repo/migrate for [::1]
...
2019/02/26 10:49:40 [I] [SQL] ROLL BACK 2019/02/26 10:49:40 [...routers/repo/repo.go:146 handleCreateError()] [E] MigratePost: repository already exists [uname: Mirror, name: repo] 2019/02/26 10:49:40 [D] Template: status/500
...
2019/02/26 10:50:10 [I] [SQL] COMMIT 2019/02/26 10:50:10 [T] Repository migrated [1285]: Mirror/repo [Macaron] 2019-02-26 10:50:10: Completed POST /repo/migrate 302 Found in 5m56.741603459s