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 on SPNEGO with SSPI authentication (TmplLoadTimes) #19426

Closed
tsparber-meds opened this issue Apr 19, 2022 · 1 comment · Fixed by #19427
Closed

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

tsparber-meds opened this issue Apr 19, 2022 · 1 comment · Fixed by #19427
Labels
issue/confirmed Issue has been reviewed and confirmed to be present or accepted to be implemented issue/workaround it is or has a workaround type/bug
Milestone

Comments

@tsparber-meds
Copy link

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.

err := s.rnd.HTML(w, http.StatusUnauthorized, string(tplSignIn), templates.BaseVars().Merge(store.GetData()))

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

@wxiaoguang wxiaoguang added issue/confirmed Issue has been reviewed and confirmed to be present or accepted to be implemented issue/workaround it is or has a workaround labels Apr 19, 2022
@wxiaoguang wxiaoguang added this to the 1.16.6 milestone Apr 19, 2022
@go-gitea go-gitea locked and limited conversation to collaborators May 3, 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 issue/workaround it is or has a workaround type/bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants