Closed Bug 1659600 Opened 5 years ago Closed 5 years ago

OpenPGP signature status not shown if message opened from file

Categories

(MailNews Core :: Security: OpenPGP, defect)

defect

Tracking

(thunderbird_esr78 fixed, thunderbird80 wontfix)

RESOLVED FIXED
81 Branch
Tracking Status
thunderbird_esr78 --- fixed
thunderbird80 --- wontfix

People

(Reporter: KaiE, Assigned: KaiE)

References

Details

Attachments

(1 file)

Save an encrypted and signed OpenPGP message to a file (file save as), then use file open saved message to open that file.

The encryption status will be shown, but signature status will not.

The fix from bug 1652657 was incomplete, and is even incorrect in some scenarios.

Regarding this commit:
https://hg.mozilla.org/comm-central/rev/d025476d178d

Handling "file" like mailbox doesn't work, because for "file" URIs, it's possible there isn't any number parameter, and consequently msgNum will be undefined. However, we want msgNum to be "0".

Based on my limited understanding of the mail URIs, I think that a file:// URI will always refer to a single message, only. If that's true, then we can simply assign msgNum = "0";

Removing number=0 from pathQueryRef is wrong, because for mailboxes we need the number. And the replace call doesn't work if it starts with ?number=0 . I think we need to remove the "replace" call that was added in the above commit.

In mimeVerify we have code that simply compares the pathQueryRef part of URIs, while one side could contain a number, and the other doesn't. It seems reasonable to use msgIdentificationFromUrl in that place, too, and compare the derived values.

Pushed by kaie@kuix.de:
https://hg.mozilla.org/comm-central/rev/c73e666bb86e
OpenPGP signature status not shown if message opened from file. r=PatrickBrunschwig DONTBUILD

Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → 81 Branch

Comment on attachment 9170537 [details]
Bug 1659600 - OpenPGP signature status not shown if message opened from file. r=PatrickBrunschwig

OpenPGP correctness fix, low risk

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

Will take for esr. We're past the last 80 beta

Comment on attachment 9170537 [details]
Bug 1659600 - OpenPGP signature status not shown if message opened from file. r=PatrickBrunschwig

[Triage Comment]
Approved for esr78

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

Attachment

General

Created:
Updated:
Size: