Skip to content
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

500 when deleting repository that has more than one issues #1191

Closed
1 of 6 tasks
m0xf opened this issue Mar 10, 2017 · 0 comments · Fixed by #1193
Closed
1 of 6 tasks

500 when deleting repository that has more than one issues #1191

m0xf opened this issue Mar 10, 2017 · 0 comments · Fixed by #1193
Labels
issue/critical This issue should be fixed ASAP. If it is a PR, the PR should be merged ASAP type/bug
Milestone

Comments

@m0xf
Copy link

m0xf commented Mar 10, 2017

  • Gitea version (or commit ref): 1.1.0+5-gdbcd4527
  • Git version: 2.1
  • Operating system: Windows
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • [Y] Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

2017/03/10 13:57:34 [I] [sql] DELETE FROM repository WHERE id=? [args] [410]
2017/03/10 13:57:34 [I] [sql] DELETE FROM access WHERE repo_id=? [args] [410]
2017/03/10 13:57:34 [I] [sql] DELETE FROM action WHERE repo_id=? [args] [410]
2017/03/10 13:57:34 [I] [sql] DELETE FROM watch WHERE repo_id=? [args] [410]
2017/03/10 13:57:34 [I] [sql] DELETE FROM star WHERE repo_id=? [args] [410]
2017/03/10 13:57:34 [I] [sql] DELETE FROM mirror WHERE repo_id=? [args] [410]
2017/03/10 13:57:34 [I] [sql] DELETE FROM milestone WHERE repo_id=? [args] [410]
2017/03/10 13:57:34 [I] [sql] DELETE FROM release WHERE repo_id=? [args] [410]
2017/03/10 13:57:34 [I] [sql] DELETE FROM collaboration WHERE repo_id=? [args] [410]
2017/03/10 13:57:34 [I] [sql] DELETE FROM pull_request WHERE base_repo_id=? [args] [410]
2017/03/10 13:57:34 [I] [sql] SELECT id FROM issue WHERE repo_id=? [args] [410]
2017/03/10 13:57:34 [I] [sql] DELETE FROM comment WHERE issue_id IN (?,?,?) [args] [984 985 986]
2017/03/10 13:57:34 [I] [sql] DELETE FROM issue_user WHERE issue_id IN (?,?,?) [args] [984 985 986]
2017/03/10 13:57:34 [I] [sql] SELECT id, uuid, issue_id, comment_id, release_id, name, created_unix FROM attachment WHERE issue_id=? IN (?,?,?) [args] [984 985 986]
2017/03/10 13:57:34 [I] [sql] ROLL BACK
2017/03/10 13:57:34 [...ters/repo/setting.go:303 SettingsPost()] [E] DeleteRepository: Not enough args to execute query. Expected 4, got 3.
2017/03/10 13:57:34 [D] Template: status/500

To reproduce:

  1. Create repository
  2. Create 2 issues
  3. Delete repository
@lunny lunny added this to the 1.2.0 milestone Mar 10, 2017
@lunny lunny added type/bug issue/critical This issue should be fixed ASAP. If it is a PR, the PR should be merged ASAP backport/v1.1 and removed type/bug issue/critical This issue should be fixed ASAP. If it is a PR, the PR should be merged ASAP labels Mar 10, 2017
@lunny lunny added type/bug issue/critical This issue should be fixed ASAP. If it is a PR, the PR should be merged ASAP and removed backport/v1.1 labels Mar 10, 2017
@go-gitea go-gitea locked and limited conversation to collaborators Nov 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
issue/critical This issue should be fixed ASAP. If it is a PR, the PR should be merged ASAP type/bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants