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

add/remove issue dependency failing #9483

Closed
1 of 7 tasks
bhalbright opened this issue Dec 24, 2019 · 1 comment
Closed
1 of 7 tasks

add/remove issue dependency failing #9483

bhalbright opened this issue Dec 24, 2019 · 1 comment
Labels

Comments

@bhalbright
Copy link
Contributor

Adding or removing a dependency in the gitea user interface is failing, user gets an error 500 and the dependency is not added or removed.

  • Gitea version (or commit ref): 30181d4
  • Git version: version 2.19.1.windows.1
  • Operating system: Windows 10
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:
    2019/12/23 22:36:18 ...les/context/panic.go:35:1() [E] PANIC:: runtime error: invalid memory address or nil pointer dereference
    E:/Go/src/runtime/panic.go:82 (0x444f55)
    panicmem: panic(memoryError)
    E:/Go/src/runtime/signal_windows.go:233 (0x444df0)
    sigpanic: panicmem()
    E:/dev/Go/src/code.gitea.io/gitea/models/repo.go:537 (0xdd6752)
    (*Repository).getOwnerName: if len(repo.OwnerName) > 0 {
    E:/dev/Go/src/code.gitea.io/gitea/models/repo.go:563 (0xdd6a59)
    (*Repository).mustOwnerName: if err := repo.getOwnerName(e); err != nil {
    E:/dev/Go/src/code.gitea.io/gitea/models/repo.go:260 (0xd6b5ad)
    (*Repository).MustOwnerName: return repo.mustOwnerName(x)
    E:/dev/Go/src/code.gitea.io/gitea/models/repo.go:265 (0xd6b58c)
    (*Repository).FullName: return repo.MustOwnerName() + "/" + repo.Name
    E:/dev/Go/src/code.gitea.io/gitea/models/repo.go:270 (0xd6b58b)
    (*Repository).HTMLURL: return setting.AppURL + repo.FullName()
    E:/dev/Go/src/code.gitea.io/gitea/models/issue.go:325 (0xd6b58a)
    (*Issue).HTMLURL: return fmt.Sprintf("%s/%s/%d", issue.Repo.HTMLURL(), path, issue.Index)
    E:/dev/Go/src/code.gitea.io/gitea/routers/repo/issue_dependency.go:33 (0x131c655)
    AddDependency: defer ctx.Redirect(issue.HTMLURL(), http.StatusSeeOther)

Description

You get an error 500 from an issue page when you try to either add or remove a dependency

@bhalbright bhalbright changed the title Redirect in add/remove issue dependency failing add/remove issue dependency failing Dec 24, 2019
@6543
Copy link
Member

6543 commented Dec 25, 2019

does #9484 close this? - then this need to be closed

@lunny lunny added the type/bug label Dec 25, 2019
@lunny lunny closed this as completed Dec 25, 2019
@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
Projects
None yet
Development

No branches or pull requests

3 participants