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

Error 500 in Actions View #24682

Closed
maxkeller-ide opened this issue May 12, 2023 · 1 comment · Fixed by #24706
Closed

Error 500 in Actions View #24682

maxkeller-ide opened this issue May 12, 2023 · 1 comment · Fixed by #24706
Labels
issue/confirmed Issue has been reviewed and confirmed to be present or accepted to be implemented type/bug
Milestone

Comments

@maxkeller-ide
Copy link

maxkeller-ide commented May 12, 2023

Description

When trying to view closed workflow runs for a project (http://gitea.internal.domain/{org}/{specific_repo}/actions?workflow=&state=closed) I get an http 500 error with (see below) in the log while all other repositories don't have this issue:

Gitea Version

1.19.3

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

https://gist.github.com/maxkeller-ide/c188541b34e6b3c571bf544ad99e4bdb

Screenshots

No response

Git Version

2.40.0.windows.1

Operating System

Windows Server

How are you running Gitea?

Windows binary

Database

SQLite

@wxiaoguang
Copy link
Contributor

Good catch.

copy the log here:

2023/05/12 13:16:55 ...s/context/context.go:263:HTML() [E] [645e2026] Render failed: template: repo/actions/runs_list:15:134: executing "repo/actions/runs_list" at <.TriggerUser.GetDisplayName>: error calling GetDisplayName: runtime error: invalid memory address or nil pointer dereference
	in template file (builtin) templates/repo/actions/runs_list.tmpl (subtemplate of repo/actions/list):
	----------------------------------------------------------------------
					<div class="desc issue-item-bottom-row gt-df gt-ac gt-fw gt-my-1">
						<b>{{if not $.CurWorkflow}}{{.WorkflowID}} {{end}}#{{.Index}}</b>: {{$.locale.Tr "actions.runs.commit"}}
						<a href="{{$.RepoLink}}/commit/{{.CommitSHA}}">{{ShortSha .CommitSHA}}</a>{{$.locale.Tr "actions.runs.pushed_by"}} {{.TriggerUser.GetDisplayName}}
						                                                                                                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
	----------------------------------------------------------------------

@wxiaoguang wxiaoguang added the issue/confirmed Issue has been reviewed and confirmed to be present or accepted to be implemented label May 12, 2023
@wxiaoguang wxiaoguang added this to the 1.19.4 milestone May 12, 2023
silverwind pushed a commit that referenced this issue May 14, 2023
Backport #24706 by @lunny

Fix #24682

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Codeberg-org pushed a commit to Codeberg-org/gitea that referenced this issue Jun 3, 2023
…tea#24709)

Backport go-gitea#24706 by @lunny

Fix go-gitea#24682

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
(cherry picked from commit 2fea93b)
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 29, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
issue/confirmed Issue has been reviewed and confirmed to be present or accepted to be implemented type/bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants