Adding the same GPG key (but renewed) crashes with a 500
<!---
Please read this!
Before opening a new issue, make sure to search for keywords in the issues
filtered by the "regression" or "bug" label.
For the Community Edition issue tracker:
- https://gitlab.com/gitlab-org/gitlab-ce/issues?label_name%5B%5D=regression
- https://gitlab.com/gitlab-org/gitlab-ce/issues?label_name%5B%5D=bug
For the Enterprise Edition issue tracker:
- https://gitlab.com/gitlab-org/gitlab-ee/issues?label_name%5B%5D=regression
- https://gitlab.com/gitlab-org/gitlab-ee/issues?label_name%5B%5D=bug
and verify the issue you're about to submit isn't a duplicate.
--->
### Summary
I renewed the expiration for my GPG key. If I try to add the new exported public key, I get a 500 error.
### Steps to reproduce
* Create a GPG key
* Add it to your GitLab profile
* Update the expiration of the key
* Re-export the key and add it again, without removing the previous one
### What is the current *bug* behavior?
500 error
### What is the expected *correct* behavior?
An error page that says what's wrong, or a popup asking if you want to replace your current GPG key. That should be done only on matching fingerprints.
issue