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

nil pointer evaluating *models.GPGKey.KeyID #11230

Closed
2 of 7 tasks
ki9us opened this issue Apr 27, 2020 · 4 comments · Fixed by #11392
Closed
2 of 7 tasks

nil pointer evaluating *models.GPGKey.KeyID #11230

ki9us opened this issue Apr 27, 2020 · 4 comments · Fixed by #11392
Labels
issue/needs-feedback For bugs, we need more details. For features, the feature must be described in more detail

Comments

@ki9us
Copy link

ki9us commented Apr 27, 2020

  • Gitea version (or commit ref): 1.11.4
  • Git version: N/A
  • Operating system: CentOS
  • Database:
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant

Description

When I click on an unsigned commit, I get a 404 with the message:

template: repo/commit_page:90:57: executing "repo/commit_page" at <.Verification.SigningKey.KeyID>: nil pointer evaluating *models.GPGKey.KeyID

You can try this URL as an example:
https://git.ki9.us/keith/compass/commit/81fd585e84edfa517b780ad52b9555b582e7d36b

I can't reproduce it on the demo site, so it must be an issue with my implementation.

I'm running Gitea on Uberspace, according to these instructions.

@guillep2k
Copy link
Member

Is it possible you're using custom templates? Your templates might be outdated.

@guillep2k guillep2k added the issue/needs-feedback For bugs, we need more details. For features, the feature must be described in more detail label Apr 28, 2020
@ki9us
Copy link
Author

ki9us commented Apr 28, 2020

It will be a minute before I can look at this again.

@zeripath
Copy link
Contributor

Sigh - go templates don't shortcut ifs. Sorry about this.

@zeripath
Copy link
Contributor

Sorry it also took me so long to recognise that this was the problem.

@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
issue/needs-feedback For bugs, we need more details. For features, the feature must be described in more detail
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants