-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
accountlinks.tmpl: nil pointer evaluating oauth2.Provider.IconHTML #28667
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
Comments
I think it's related to #27798. The (old) problem was a deactivated provider is missed in the list but that should be fixed. |
@KN4CK3R Thank you, I just tested nightly and the issue has been fixed there, so you're probably right. |
Oh, the fix was not backported. That explains why you get that error in the last release. |
Should be fixed in 1.22? |
Closed by #29263 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Description
Description and suspected cause
It is possible to get a
nil
pointer for$providerData
in accountlinks.tmpl. This then results in an error like:I haven't exactly figured out how to replicate this yet, but will investigate it myself. Just created the issue to keep track of my investigation into this.
Probably something to do with an error that is ignored here
Gitea Version
1.21.3
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Relevant logs are in description (they're short).
Screenshots
Git Version
2.40.1
Operating System
gitea/gitea Docker image on virtual Debian 12 host.
How are you running Gitea?
Unmodified gitea/gitea Docker image running on a virtual Debian 12 host with a mariadb 10 database.
Database
MySQL/MariaDB
The text was updated successfully, but these errors were encountered: