Closed Bug 1902603 Opened 6 months ago Closed 6 months ago

Enable tests for bug 1806161 - Thunderbird doesn't decrypt S/MIME encrypted message wrapped in a digital signature

Categories

(MailNews Core :: Security: S/MIME, defect)

Thunderbird 128
defect

Tracking

(Not tracked)

RESOLVED FIXED
129 Branch

People

(Reporter: mkmelin, Assigned: KaiE)

References

Details

Attachments

(1 file, 1 obsolete file)

We have tests that say they should be enabled after bug 1806161 lands.
https://searchfox.org/comm-central/rev/40f0b5fe6b3a2f745e42b1a9d4d3f73d37d4e548/mail/test/browser/openpgp/browser_viewMessage.js#11-14

Unfortunately, the test does not work. The content does not get decrypted. I don't know why.

thanks for reminding me, I'll investigate

I found the simple explanation:

When we refresh the S/MIME test data and keys, new secret keys were created.

The files we had added here had been manually crafted before that date,
we didn't update these test messages,
and therefore we don't have the matching keys to decrypt them.

Assignee: nobody → kaie

I'll create updated test messages.

I see for S/MIME messages we also need different logic for accessing the decrypted contents, which lives in test_smime_decrypt.js

I'll move the test and the files over to the S/MIME area.

That explains the failure, but it's unfortunate that the result of such an error case is just a blank message pane, with no explanation or banner. Normally if one doesn't have the secret key there's a notification about that.

(In reply to Magnus Melin [:mkmelin] from comment #6)

That explains the failure, but it's unfortunate that the result of such an error case is just a blank message pane, with no explanation or banner. Normally if one doesn't have the secret key there's a notification about that.

I agree we should fix that.
I'll handle that in a separate patch.

(In reply to Magnus Melin [:mkmelin] from comment #6)

That explains the failure, but it's unfortunate that the result of such an error case is just a blank message pane, with no explanation or banner. Normally if one doesn't have the secret key there's a notification about that.

I can reproduce the "not error message" if I open the message from file.

I do get the error message if the file is inside a folder.

The cause is bug 1902991. We currently always skip processing of status for S/MIME emails opened from file, and as a result, we don't reach the code that displays the error.

See Also: → 1902991
Attachment #9407458 - Attachment is obsolete: true

Pushed by kaie@kuix.de:
https://hg.mozilla.org/comm-central/rev/90483a87d419
Enable prepared test files for Outer-S/MIME-sig-with-inner-S/MIME-encryption. r=mkmelin

Status: NEW → RESOLVED
Closed: 6 months ago
Resolution: --- → FIXED
Pushed by kaie@kuix.de: https://hg.mozilla.org/comm-central/rev/45640a98a9a3 Follow-up to fix lint. rs=me DONTBUILD
Target Milestone: --- → 129 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: