Closed Bug 1891689 Opened 1 month ago Closed 25 days ago

Backup secret key to file from account settings doesn't work

Categories

(MailNews Core :: Security: OpenPGP, defect)

defect

Tracking

(thunderbird_esr115 unaffected, thunderbird125 affected, thunderbird126 verified)

VERIFIED FIXED
127 Branch
Tracking Status
thunderbird_esr115 --- unaffected
thunderbird125 --- affected
thunderbird126 --- verified

People

(Reporter: mkmelin, Assigned: mkmelin)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

Backup secret key to file from account settings doesn't work.

In https://hg.mozilla.org/comm-central/rev/4ab32edc743e I had missed two cases where promptKeyExport2AsciiFilename are now really async.
The dialogs seemingly do the right thing, but it doesn't actually backup if you check for the file.

Added a test so it doesn't regress again.

Target Milestone: --- → 127 Branch

Pushed by martin@humanoids.be:
https://hg.mozilla.org/comm-central/rev/65fa22d34e8d
Backup secret key to file from account settings doesn't work. r=kaie

Status: ASSIGNED → RESOLVED
Closed: 25 days ago
Resolution: --- → FIXED

Comment on attachment 9396838 [details]
Bug 1891689 - Backup secret key to file from account settings doesn't work. r=kaie

[Approval Request Comment]
Regression caused by (bug #): bug 1677088
User impact if declined: non working feature
Testing completed (on c-c, etc.): c-c
Risk to taking this patch (and alternatives if risky): safe

Attachment #9396838 - Flags: approval-comm-beta?

Comment on attachment 9396838 [details]
Bug 1891689 - Backup secret key to file from account settings doesn't work. r=kaie

[Triage Comment]
Approved for beta

Attachment #9396838 - Flags: approval-comm-beta? → approval-comm-beta+

Hello!

Is there anything QA can do here to verify that this issue is resolved?
If yes, could you please provide us with STR of what to verify?

Thank you in advance!

Flags: needinfo?(mkmelin+mozilla)

Sure, set up an opengpgp key for an account (End-to-End encryption in account settings).
In the account settings of the account, under End-to-End encryption, open the details accordion for the key. Then use the More button and Backup Secret Key to File. Verify the file was created and looks like it should. You could then delete the secret key, and once import it back using the Add-key... button on the same same page

Flags: needinfo?(mkmelin+mozilla)

Confirming this issue as verified fixed on 126.0b2(20240429201016) using macOS 14, Windows 11 and Ubuntu 22.

I was able to create, save to file(locate and view the contents of the file), delete the key and then import it back without any issues.

However I did notice a small issue while importing the key back and will explain it in STR below:

  1. Add Key.
  2. Import an existing OpenPGP key -> Continue
  3. Select file to import... ->select the file -> Open
  4. Click Continue and input password. -> Sign In
  5. Close

I would expect for the previously imported key to be automatically selected as the End-to-End Encryption method, instead, the None option is automatically selected.
I searched for an existing issue about this but could not find one. Is this the intended behaviour flow?

Status: RESOLVED → VERIFIED
Flags: needinfo?(mkmelin+mozilla)

That seems like a small UI glitch yes. If we didn't have a selected key for the account already, and you created a new one, I agree it should get automatically selected. Please file a bug.

Flags: needinfo?(mkmelin+mozilla)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: