Closed Bug 1663037 Opened 4 years ago Closed 4 years ago

Improve OpenPGP key import failure scenarios

Categories

(MailNews Core :: Security: OpenPGP, enhancement, P1)

enhancement

Tracking

(thunderbird_esr78 fixed, thunderbird81 fixed)

RESOLVED FIXED
82 Branch
Tracking Status
thunderbird_esr78 --- fixed
thunderbird81 --- fixed

People

(Reporter: KaiE, Assigned: KaiE)

Details

Attachments

(1 file)

Users run into problems when importing keys.
We have several reports for scenarios we don't understand yet, examples are bug 1658187 and bug 1662984.

While we don't know the cause yet, let's try to improve our handling of import failures.

One symtpom is is: Import seems stuck.
Reason is that we get an exception, and the UI flow is interrupted and never proceeds.
We should add try/catch blocks to ensure we notice the problem and tell the user.

I've see that after an import failure, using the cancel button in the import wizard no longer works. It seems the kGenerating variable isn't reset properly.

Another report was:
When being prompted to enter the password for a secret key, we only show the fingerprint as identifying criteria, which makes it difficult for the user to know which key the prompt is about. To improve this, I think we can simply append the key's user ID and its creation date to the shown key identifier in the prompt.

We got reports that saving keys to files was impossible. Let's improve the error message with the exact path that we tried to save to, in the hope this will allow the users give us better information, and to possibly self-diagnose (by reading the error console).

Priority: -- → P1

Pushed by kaie@kuix.de:
https://hg.mozilla.org/comm-central/rev/584545287aa2
Improve OpenPGP key import failure scenarios. r=aleca DONTBUILD

Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED

Comment on attachment 9173866 [details]
Bug 1663037 - Improve OpenPGP key import failure scenarios. r=aleca

OpenPGP correctness, only effect should be better handling of failure scenarios.

Attachment #9173866 - Flags: approval-comm-esr78?
Attachment #9173866 - Flags: approval-comm-beta?

Comment on attachment 9173866 [details]
Bug 1663037 - Improve OpenPGP key import failure scenarios. r=aleca

[Triage Comment]
Approved for beta

Attachment #9173866 - Flags: approval-comm-beta? → approval-comm-beta+
Target Milestone: --- → 82 Branch

Comment on attachment 9173866 [details]
Bug 1663037 - Improve OpenPGP key import failure scenarios. r=aleca

[Triage Comment]
Approved for esr78.

Attachment #9173866 - Flags: approval-comm-esr78? → approval-comm-esr78+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: