After importing secret key OpenGPG Key Manager shows properties of wrong key.
Categories
(MailNews Core :: Security: OpenPGP, defect, P1)
Tracking
(thunderbird_esr68 unaffected, thunderbird_esr78+ fixed, thunderbird83 affected)
Tracking | Status | |
---|---|---|
thunderbird_esr68 | --- | unaffected |
thunderbird_esr78 | + | fixed |
thunderbird83 | --- | affected |
People
(Reporter: blacklion, Assigned: aleca)
Details
(Keywords: regression)
Attachments
(3 files, 1 obsolete file)
37.49 KB,
image/png
|
Details | |
33.47 KB,
image/png
|
Details | |
3.79 KB,
patch
|
KaiE
:
review+
wsmwk
:
approval-comm-esr78+
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:80.0) Gecko/20100101 Firefox/80.0
Steps to reproduce:
- Open Thunderbird 78.3.0 (candidate).
- Open
Tools|OpenPGP Key Manager
. - Select
File|Import Secret Key(s) From File
. - Select gpg-exported secret key file.
- Ensure, that one key is found and marked with checkbox.
- Click
Continue
. - On dialog with (successful results) click
Key Properties
.
Actual results:
Properties of some random public key from key storage are shown.
Expected results:
Properties of freshly-imported personal secret key are shows,
Reporter | ||
Comment 1•4 years ago
|
||
Reporter | ||
Comment 2•4 years ago
|
||
Updated•4 years ago
|
Updated•4 years ago
|
Yes, I can reproduce this as described with Thunderbird 78.4.
The key properties shown in the last import dialog are the ones from the key which is preselected in the key manager list, not from the newly imported key.
This error doesn't occur when importing a key through the account settings tab.
Assignee | ||
Comment 6•4 years ago
|
||
Thanks for confirming this, I'll take care of fixing it.
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 7•4 years ago
|
||
The problem was in the enigmailKeyDetails()
method of the Key Manager that was always and only opening properties of selected keys, ignoring the passed value of the recently imported key.
This patch fixes it, alongside a small UI fix.
Assignee | ||
Comment 8•4 years ago
|
||
Comment on attachment 9186381 [details] [diff] [review]
1667054-key-properties.diff
Pinging Magnus for a review as well just to see if I can get a quicker review since this is a quick fix but pretty important for error prevention.
Comment 9•4 years ago
|
||
Comment 10•4 years ago
|
||
The second if (!keyId) check shouldn't be necessary.
Assignee | ||
Comment 11•4 years ago
|
||
Thanks for the review
Updated•4 years ago
|
Assignee | ||
Updated•4 years ago
|
Comment 12•4 years ago
|
||
Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/945a6cae42e2
Fix incorrect key reported in Key Properties dialog after importing secret key from the Key manager. r=KaiE
Updated•4 years ago
|
Comment 13•4 years ago
|
||
Comment on attachment 9187008 [details] [diff] [review]
1667054-key-properties.diff
[Approval Request Comment]
Regression caused by (bug #): unknown
User impact if declined: confusing import experience
Testing completed (on c-c, etc.): c-c + beta
Risk to taking this patch (and alternatives if risky): fairly safe
Comment 14•4 years ago
|
||
Comment on attachment 9187008 [details] [diff] [review]
1667054-key-properties.diff
[Triage Comment]
Approved for esr78
Comment 15•4 years ago
|
||
bugherder uplift |
Thunderbird 78.6.0:
https://hg.mozilla.org/releases/comm-esr78/rev/ca72466c8e7d
Description
•