Skip to content

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

@je-s

Description

@je-s
  • 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions