GPG-Keys don't get deleted when deleting an account #2544

Closed
opened 2025-11-02 04:39:57 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @je-s on GitHub (Nov 18, 2018).

  • Gitea version: 8733384
  • Git version: Not relevant
  • Operating system: Alpine Linux 3.7
  • Database:
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes
    • No
    • Not relevant

Description

When you delete a profile with an existing GPG-Key, you can't use this GPG-Key in a new account again. An error says "A public GPG key with same ID already exists.", and it can't be added.
Deleting a Key alone (not the whole account) and adding it again manually is no problem; My guess is that in the process of the account deletion, the GPG-Keys don't get deleted as well.

Screenshots

2018-11-18_223917

Originally created by @je-s on GitHub (Nov 18, 2018). - Gitea version: 8733384 - Git version: Not relevant - Operating system: Alpine Linux 3.7 - Database: - [ ] PostgreSQL - [ ] MySQL - [ ] MSSQL - [x] SQLite - Can you reproduce the bug at https://try.gitea.io: - [x] Yes - [ ] No - [ ] Not relevant ## Description When you delete a profile with an existing GPG-Key, you can't use this GPG-Key in a new account again. An error says "A public GPG key with same ID already exists.", and it can't be added. Deleting a Key alone (not the whole account) and adding it again manually is no problem; My guess is that in the process of the account deletion, the GPG-Keys don't get deleted as well. ## Screenshots ![2018-11-18_223917](https://user-images.githubusercontent.com/16293381/48678441-b71a5700-eb83-11e8-9c5d-e14e7d60ee4f.png)
GiteaMirror added the type/bug label 2025-11-02 04:39:57 -06:00
Author
Owner

@je-s commented on GitHub (Nov 18, 2018):

PR #5357 provided a quick fix for this problem.
We've already tested it successfully.

@je-s commented on GitHub (Nov 18, 2018): PR #5357 provided a quick fix for this problem. We've already tested it successfully.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#2544