Error 500 on SPNEGO with SSPI authentication (TmplLoadTimes) #8845

Closed
opened 2025-11-02 08:20:33 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @tsparber-meds on GitHub (Apr 19, 2022).

Description

If the login type SPNEGO with SSPI is enabled the following Error 500 is returned upon login.

template: base/footer_content:4:257: executing "base/footer_content" at
<call .TmplLoadTimes>: error calling call: call of nil`.

The issue seems to come from #17979 as this removes the TmplLoadTimes function from modules/templates/base.go.

The verify function just uses the base vars and thus the function is missing.
b74322dfce/services/auth/sspi_windows.go (L112)

Disabling the footer load times via app.ini, does allow the login wia SPNEGO.

[other]
SHOW_FOOTER_TEMPLATE_LOAD_TIME = false

Gitea Version

1.16.5

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

grafik

Git Version

2.35.1.windows.2

Operating System

Windows Server 2019

How are you running Gitea?

Running from Command-Line downloaded from gitea.io

Database

SQLite

Originally created by @tsparber-meds on GitHub (Apr 19, 2022). ### Description If the login type SPNEGO with SSPI is enabled the following Error 500 is returned upon login. ``` template: base/footer_content:4:257: executing "base/footer_content" at <call .TmplLoadTimes>: error calling call: call of nil`. ``` The issue seems to come from #17979 as this removes the `TmplLoadTimes` function from [modules/templates/base.go](https://github.com/go-gitea/gitea/pull/17979/files#diff-2e75b56db013b4b0736d196de537236b4396937e59bc6a9de7fa35ef639ce947). The verify function just uses the base vars and thus the function is missing. https://github.com/go-gitea/gitea/blob/b74322dfce8d15e9204900913bb815a7b0ba073f/services/auth/sspi_windows.go#L112 Disabling the footer load times via `app.ini,` does allow the login wia SPNEGO. ```ini [other] SHOW_FOOTER_TEMPLATE_LOAD_TIME = false ``` ### Gitea Version 1.16.5 ### Can you reproduce the bug on the Gitea demo site? No ### Log Gist _No response_ ### Screenshots ![grafik](https://user-images.githubusercontent.com/26898687/164025473-f14cfd4e-39fd-4d78-8f94-a527409867ca.png) ### Git Version 2.35.1.windows.2 ### Operating System Windows Server 2019 ### How are you running Gitea? Running from Command-Line downloaded from gitea.io ### Database SQLite
GiteaMirror added the issue/confirmedtype/bugissue/workaround labels 2025-11-02 08:20:33 -06:00
Author
Owner

@wxiaoguang commented on GitHub (Apr 19, 2022):

Fix is coming

@wxiaoguang commented on GitHub (Apr 19, 2022): Fix is coming * #19427 * #19428
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#8845