Error on ssh/gpg page after gpg key add [docker] #1345

Closed
opened 2025-11-02 03:57:17 -06:00 by GiteaMirror · 3 comments
Owner

Originally created by @tuxfanou on GitHub (Dec 11, 2017).

Description

After added gpg key in my profile, an error occurred each time I going to ssh/gpg settings :

template: user/settings/keys_gpg:19:55: executing "user/settings/keys_gpg" at <.Expired.IsZero>: can't evaluate field Expired in type *models.GPGKey

Originally created by @tuxfanou on GitHub (Dec 11, 2017). - Gitea version (or commit ref): b82519c - Operating system: linux (docker) - Database (use `[x]`): - [ ] PostgreSQL - [X] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [X] Yes (provide example URL) : https://try.gitea.io/user/settings/keys - [ ] No - [ ] Not relevant - Log gist: https://gist.github.com/tuxfanou/4fb20c69fda836b79bb1549b14653468 ## Description After added gpg key in my profile, an error occurred each time I going to ssh/gpg settings : template: user/settings/keys_gpg:19:55: executing "user/settings/keys_gpg" at <.Expired.IsZero>: can't evaluate field Expired in type *models.GPGKey
GiteaMirror added the type/bug label 2025-11-02 03:57:17 -06:00
Author
Owner

@lafriks commented on GitHub (Dec 11, 2017):

Seems to be introduced by #3142

@lafriks commented on GitHub (Dec 11, 2017): Seems to be introduced by #3142
Author
Owner

@sapk commented on GitHub (Dec 11, 2017):

Is it fix by #3153 ?

@sapk commented on GitHub (Dec 11, 2017): Is it fix by #3153 ?
Author
Owner

@lunny commented on GitHub (Dec 11, 2017):

resolved by #3153

@lunny commented on GitHub (Dec 11, 2017): resolved by #3153
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#1345