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

Errors that occur when deleting release #4205

Closed
2 of 7 tasks
yasuokav opened this issue Jun 10, 2018 · 1 comment
Closed
2 of 7 tasks

Errors that occur when deleting release #4205

yasuokav opened this issue Jun 10, 2018 · 1 comment
Labels
issue/critical This issue should be fixed ASAP. If it is a PR, the PR should be merged ASAP type/bug
Milestone

Comments

@yasuokav
Copy link
Contributor

yasuokav commented Jun 10, 2018

  • Gitea version (or commit ref): f54626d (After Fix some webhooks bugs #3981)
  • Git version: 2.16.3
  • Operating system: macOS
  • Database:
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (I think yes, because the page is not refreshed)
    • No
    • Not relevant
  • Log gist:
[Macaron] PANIC: runtime error: invalid memory address or nil pointer dereference
/usr/local/Cellar/go/1.10.2/libexec/src/runtime/panic.go:502 (0x402d248)
	gopanic: reflectcall(nil, unsafe.Pointer(d.fn), deferArgs(d), uint32(d.siz), uint32(d.siz))
/usr/local/Cellar/go/1.10.2/libexec/src/runtime/panic.go:63 (0x402c2bd)
	panicmem: panic(memoryError)
/usr/local/Cellar/go/1.10.2/libexec/src/runtime/signal_unix.go:388 (0x4043319)
	sigpanic: panicmem()
/Users/yasuokav/go/src/code.gitea.io/gitea/models/access.go:64 (0x4913ed6)
	accessLevel: if !repo.IsPrivate {
/Users/yasuokav/go/src/code.gitea.io/gitea/models/release.go:451 (0x4981de3)
	DeleteReleaseByID: mode, _ := accessLevel(x, u.ID, rel.Repo)
/Users/yasuokav/go/src/code.gitea.io/gitea/routers/repo/release.go:288 (0x4ad52fd)
	DeleteRelease: if err := models.DeleteReleaseByID(ctx.QueryInt64("id"), ctx.User, true); err != nil {

Description

As title. The release will be deleted, but the attachments did not delete(this is another issue #2618).

Screenshots

N/A

@lunny lunny added the type/bug label Jun 10, 2018
@lunny lunny added this to the 1.5.0 milestone Jun 10, 2018
@lunny lunny added the issue/critical This issue should be fixed ASAP. If it is a PR, the PR should be merged ASAP label Jun 10, 2018
@techknowlogick
Copy link
Member

Closed with #4207

@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 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

No branches or pull requests

3 participants