Hagrid fails to identify valid e-mail address in uploaded key if the identity name contains "->"
From keys.openpgp.org/hagrid#179:
I created a test key:
% gpg --list-key 66EA112AFA9CCBD87F33A7EE6256F608FFD3172C
pub rsa3072 2023-02-09 [SC] [expires: 2025-02-08]
66EA112AFA9CCBD87F33A7EE6256F608FFD3172C
uid [ultimate] test -> <test@vollkorn.cryptobitch.de>
sub rsa3072 2023-02-09 [E] [expires: 2025-02-08]
Note that the identity's name is test -> and it has a valid e-mail address of test@vollkorn.cryptobitch.de.
Then I uploaded the key to keys.openpgp.org, but got the following error message:
Dieser Schlüssel enthält eine Identität welche nicht als Email Adresse interpretiert werden konnte.
Diese Identität kann nicht auf keys.openpgp.org veröffentlich werden. (Warum?)
I assume that the parsing code for the identity gets confused by the additional > in the name. I think it should be possible to change it to be more robust, though.
This issue was brought to me by a confused user who understandably said that his identity has an e-mail address and the server must be buggy.
Edited by Neal H. Walfield