Skip to content

500 error on pulls page (related to dismissed review comment) #27306

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

Closed
jpraet opened this issue Sep 27, 2023 · 2 comments · Fixed by #27326
Closed

500 error on pulls page (related to dismissed review comment) #27306

jpraet opened this issue Sep 27, 2023 · 2 comments · Fixed by #27326
Labels

Comments

@jpraet
Copy link
Member

jpraet commented Sep 27, 2023

Description

I'm not sure exactly sure what caused this, but we are getting a HTTP 500 error on a certain pull request.

2023/09/27 08:48:58 ...eb/routing/logger.go:78:func1() [W] router: failed    GET /CBSS/rmsf/pulls/116 for 172.19.0.2:56762, panic in 52.2ms @ repo/issue.go:1267(repo.ViewIssue), err=runtime error: invalid memory address or nil pointer dereference
2023/09/27 08:48:58 ...rs/common/errpage.go:25:RenderPanicErrorPage() [E] PANIC: runtime error: invalid memory address or nil pointer dereference
/usr/local/go/src/runtime/panic.go:884 (0x449832)
/go/src/code.gitea.io/gitea/modules/web/routing/logger_manager.go:116 (0x2328044)
/usr/local/go/src/runtime/panic.go:884 (0x449832)
/usr/local/go/src/runtime/panic.go:260 (0x46123c)
/usr/local/go/src/runtime/signal_unix.go:841 (0x46120c)
/go/src/code.gitea.io/gitea/models/issues/review.go:158 (0x14cf9f3)
/go/src/code.gitea.io/gitea/models/issues/comment_list.go:460 (0x14cfa07)
/go/src/code.gitea.io/gitea/models/issues/comment_list.go:494 (0x14cfd26)
/go/src/code.gitea.io/gitea/models/issues/issue.go:358 (0x14d4651)
/go/src/code.gitea.io/gitea/routers/web/repo/issue.go:1340 (0x2620f6e)

It has something to do with dismissed reviews, I believe comment.Review is nil here:

if comment.Type == CommentTypeDismissReview {
if err := comment.Review.LoadReviewer(ctx); err != nil {

Gitea Version

1.20.4

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

PostgreSQL

@CaiCandong
Copy link
Member

How to reproduce ?

@jpraet
Copy link
Member Author

jpraet commented Sep 27, 2023

As the PR page gives a HTTP 500 I cannot easily see which actions happened in the history of this PR.
So unfortunately I don't know the exact steps to reproduce.

GiteaBot pushed a commit to GiteaBot/gitea that referenced this issue Sep 29, 2023
GiteaBot pushed a commit to GiteaBot/gitea that referenced this issue Sep 29, 2023
lunny added a commit that referenced this issue Sep 29, 2023
lunny added a commit that referenced this issue Sep 29, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 14, 2023
project-mirrors-bot-tu bot pushed a commit to project-mirrors/forgejo-as-gitea-fork that referenced this issue Jan 23, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants