Attempting to import a secret key with no account identities set up causes: TypeError: can't access property "email", gIdentity is null
Categories
(MailNews Core :: Security: OpenPGP, defect)
Tracking
(thunderbird_esr78+ fixed, thunderbird86+ affected)
People
(Reporter: lasana, Assigned: lasana)
References
Details
Attachments
(1 file)
1.37 KB,
patch
|
aleca
:
review+
wsmwk
:
approval-comm-esr78+
|
Details | Diff | Splinter Review |
This happens when I click the "Import Secret Key(s) from File" menu entry. The error is thrown here:
https://searchfox.org/comm-central/source/mail/extensions/openpgp/content/ui/keyWizard.js#185
A consequence of this error is that the sub-dialog shows the "wizardStart" section instead of the "wizardImportKey" section.
Assignee | ||
Comment 1•3 years ago
|
||
So my question now is, should we bother to fix this or should the key manager be disabled if there are no configured identities?
Comment 2•3 years ago
|
||
The key manager should be enabled regardless of whether we have identities. People may want to use that so that they can import keys to configure identities to use them. And also handling of other people's keys.
Updated•3 years ago
|
Comment 3•3 years ago
|
||
I'm not sure about this as I'm not acquainted with the technical requirements of an OpenPGP secret key.
Does the secret key need to be attached/associated to an identity in order to work?
Do we even allow that? (I don't think we currently do)
I think we should fix it if it's an expected behavior or something that other software can do.
Maybe Kai has more insights on this.
Comment 4•3 years ago
|
||
Keys are just keys. They can be associated to an identity or not. The key can be used to decrypt even if it's not associated with an identity. This could be fairly common: e.g. an old key you have, and you're decrypting old mails - but the key is not associated to anything.
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Updated•3 years ago
|
Assignee | ||
Comment 5•3 years ago
|
||
This changes the window title update to only happen if the menu has a selected item.
Updated•3 years ago
|
Comment 6•3 years ago
|
||
Comment on attachment 9201509 [details] [diff] [review] bug1690387.patch Review of attachment 9201509 [details] [diff] [review]: ----------------------------------------------------------------- Yup, this does it, thanks!
Updated•3 years ago
|
Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/3867cee7853f
Do not update identity email in key generation dialog if no identity set. r=aleca
Comment 8•3 years ago
|
||
Comment on attachment 9201509 [details] [diff] [review]
bug1690387.patch
[Approval Request Comment]
User impact if declined: user confusion is importing keys under certain conditions.
Testing completed (on c-c, etc.): beta
Risk to taking this patch (and alternatives if risky): low risk
Comment 9•3 years ago
|
||
Comment on attachment 9201509 [details] [diff] [review]
bug1690387.patch
[Triage Comment]
Approved for esr78
Comment 10•3 years ago
|
||
Description
•