Closed Bug 1988948 Opened 1 month ago Closed 1 month ago

Test S/MIME certificate for sub-identity doesn't work

Categories

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

defect

Tracking

(thunderbird_esr140 unaffected, thunderbird144 fixed)

RESOLVED FIXED
145 Branch
Tracking Status
thunderbird_esr140 --- unaffected
thunderbird144 --- fixed

People

(Reporter: mkmelin, Assigned: mkmelin)

References

Details

Attachments

(3 files)

While bug 1944810 worked for one of my test certificates, when I go to a sub-identity and try Test of a certificate I have, hitting Test does nothing.

Uncaught (in promise) NS_ERROR_XPC_NOT_ENOUGH_ARGS: Not enough arguments [nsIX509CertDB.asyncVerifyCertAtTime]
    smimeTestCert chrome://messenger/content/am-e2e.js:783
    oncommand chrome://messenger/content/am-identity-edit.xhtml:1
2 am-e2e.js:783
Assignee: nobody → mkmelin+mozilla
Status: NEW → ASSIGNED

Bug 1985660 changed the parameter list for 1985660.

We also need to fix mailnews/mime/test/unit/test_smime_perm_decrypt.js

See Also: → 1985660
Target Milestone: --- → 145 Branch

Pushed by edicharry@thunderbird.net:
https://hg.mozilla.org/comm-central/rev/4ad654d0a384
Test S/MIME certificate for sub-identity doesn't work. r=kaie
https://hg.mozilla.org/comm-central/rev/2d672cbd8f7e
Adjust test after parameters for asyncVerifyCertAtTime were changed. r=mkmelin

Status: ASSIGNED → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED

This doesn't add any checks for expected results but at least we run through the code.

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/e54474f36a1d
hook up testCertValidity() in test_smime_perm_decrypt.js. r=kaie

Comment on attachment 9513685 [details]
Bug 1988948 - Test S/MIME certificate for sub-identity doesn't work. r=kaie

Uplift Approval Request

  • Please state case for uplift consideration and ensure bug severity is set: Regression
    (All patches needed)
  • User impact if declined: Feature completely broken
  • Is this code covered by automated tests?: Yes
  • Has the fix been verified in Daily?: Yes
  • Has the fix been verified in Beta?: No
  • Needs manual test from QA?: No
  • If yes, steps to reproduce:
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): API adjustment
  • Does the fix cause any migrations to be skipped?: No
  • String changes made/needed: none
Attachment #9513685 - Flags: approval-comm-beta?

Comment on attachment 9513685 [details]
Bug 1988948 - Test S/MIME certificate for sub-identity doesn't work. r=kaie

[Triage Comment]
Approved for beta

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

Comment on attachment 9513706 [details]
Bug 1988948 - Adjust test after parameters for asyncVerifyCertAtTime were changed. r=mkmelin

[Triage Comment]
Approved for beta

Attachment #9513706 - Flags: approval-comm-beta+

Comment on attachment 9514261 [details]
Bug 1988948 - hook up testCertValidity() in test_smime_perm_decrypt.js. r=kaie

[Triage Comment]
Approved for beta

Attachment #9514261 - 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: