Closed NefixEstrada closed 5 years ago
Confirmed with SQLite database too.
It has a really simple solution though I'm not sure how to implement it. The solution resides in this function.
Things that need to be added:
It's really really trivial, but I have no clue how to do it
Maybe just validate the name inside the form with JS client side and mark field red and show warning.
I think that that would be a bad fix. The API should return a 400 error and then the app should show the error. The JS warning is a nice to have, but it's not enough since you could have the 500 error again @davidak
The JS warning is a nice to have, but it's not enough since you could have the 500 error again
it should prevent you from submitting the form.
but you are right, i forgot the API. then it has to be serverside and maybe clientside in addition in JS
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.
I can still reproduce it.
Tested on https://try.gitea.io/ with version 270fa6d.
I'm going to fix it, since I've already learned Go
So, I've been trying to fix it but I had no luck. I'm not sure which is the method that gets called (does the API have a different method?). Also I don't know how am I supposed to access the user repository list :/
@NefixEstrada I sent a PR #6188, could you confirm that fixed your issue?
[x]
):docker logs gitea
gitea.logs
has no relevant logsDescription
When you try to migrate a repository and there's already a repository with the name you set, it throws a 500 error
Screenshots
I'll try to solve it, but I don't think I'll be able do it