Subject: Re: bug#46138: 28.0.50; epg--filter-revoked-keys filters out valid keys

From: Alexey Shmalko <[email-masked]>
Date: Fri, 29 Jan 2021 17:35:36 +0200

Here is my key you can import. It has 5 uids, 2 of which are revoked.

Use `gpg --import` to import it, `gpg --list-keys -v DCEF7BCCEB3066C3`
to show all uids including revoked ones.

If you need to manually reproduce the key, use `gpg --edit-key` to start
editing. Add a couple of uids with `adduid`, select one uid with `uid <n>`,
`revuid` to revoke it, finally `save` to save the changes.

Lars Ingebrigtsen <[email-masked]> writes:

> Alexey Shmalko <[email-masked]> writes:
>
>> I have a gpg key with multiple uids, some of which are revoked:
>>
>> [ultimate] (1). Alexey Shmalko <[email-masked]>
>> [ revoked] (2)  Alexey Shmalko <[email-masked]>
>> [ revoked] (3)  Alexey Shmalko <[email-masked]>
>>
>> Now the issue is that `epg--filter-revoked-keys' finds one revoked uid
>> and discards the whole key:
>>
>> (defun epg--filter-revoked-keys (keys)
>>   (seq-remove (lambda (key)
>>                 (seq-find (lambda (user)
>>                             (eq (epg-user-id-validity user) 'revoked))
>>                           (epg-key-user-id-list key)))
>>               keys))
>
> Yup.  Do you have a recipe for setting up a gpg key with multiple
> revoked uids so that I can test this here?
>
> -- 
> (domestic pets only, the antidote for overdose, milk.)
>    bloggy blog: http://lars.ingebrigtsen.no