-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deleting Issue via API causes internal server error when no git repo exists #24884
Labels
Comments
It has been fixed in 1.20 by #24068 I guess 1.19 needs a new fix. |
-> Make DeleteIssue use correct context #24885 |
techknowlogick
pushed a commit
that referenced
this issue
May 23, 2023
Fix #24884 , the `ctx.Repo.GitRepo` might be nil.
#24885 is merged. Could you try to upgrade to 1.19 nightly? https://hub.docker.com/r/gitea/gitea/tags?page=1&name=1.19-nightly |
Thanks, it works with the nightly build! |
Codeberg-org
pushed a commit
to Codeberg-org/gitea
that referenced
this issue
Jun 3, 2023
Fix go-gitea#24884 , the `ctx.Repo.GitRepo` might be nil. (cherry picked from commit d19d5bc)
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Description
The API endpoint for issue deletion considers the git repo.
gitea/routers/api/v1/repo/issue.go
Line 883 in 8ceb78c
But when no git repo has been created it causes a runtime error:
Gitea Version
1.19.3
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
No response
Git Version
No response
Operating System
No response
How are you running Gitea?
Docker
Database
MySQL
The text was updated successfully, but these errors were encountered: