Closed Bug 1814306 Opened 3 years ago Closed 3 years ago

Failure to import OpenPGP key from autocrypt-only email

Categories

(MailNews Core :: Security: OpenPGP, defect)

Thunderbird 111
defect

Tracking

(thunderbird_esr102 unaffected)

RESOLVED FIXED
111 Branch
Tracking Status
thunderbird_esr102 --- unaffected

People

(Reporter: KaiE, Assigned: KaiE)

References

Details

(Keywords: regression)

Attachments

(1 file)

If an email contains an OpenPGP key in an autocrypt header, but no key attachment is present, we fail to process/import the key.

This is a regression in version 102, introduced by bug 1767942.

Because that code changed how we obtain the public key for importing
(using RNP.getOnePubKeyFromKeyBlock instead of using the keyData parameter)
calling RNP.enArmorString is wrong, because we already have a key in the correct format, and calling enArmorString produces an incorrect double-base64-encoded parameter.

No, I was wrong about the cause of the regression, I cannot reproduce on 102.

No longer regressed by: 1767942

This patch fixes my test scenario from bug 1688495.

I don't understand yet why the patch isn't necessary on comm-esr102.

See Also: → 1688495

Does the problem exist in beta?

Version: unspecified → Thunderbird 111
Status: NEW → ASSIGNED
Target Milestone: --- → 111 Branch

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/93f4f24667b2
Remove unnecessary call to RNP.enArmorString. r=mkmelin

Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: