Closed Bug 149694 Opened 24 years ago Closed 24 years ago

After importing cert, CA does not appear until restart of CM

Categories

(Core Graveyard :: Security: UI, defect)

1.0 Branch
x86
Windows 2000
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: junruh, Assigned: ssaux)

References

()

Details

Attachments

(1 file, 1 obsolete file)

6/6/02 Win2000 branch build. 1.) Get a cert from the above in house URL, and back it up. 2.) With a new profile, import the cert. 3.) Click on the Authorities tab. What is expected: To see the CA at the bottom of the list and be able to trust it. What happens: The CA does not appear until I close and reopen the Certificate Manager.
Keywords: nsbeta1
The information shown in cert manager is calculated by iterating over the database, which is a slow process. Although we working on reducing the required time (121916 etc.), it's still slow. When you import certs, the underlying database changes, and possibly the contents of any tab could change. Currently, to minimize the required time, we only update the shown tab, not updating all tabs. In order to fix this bug, we were required to update all tabs each time you import something. That is a simple fix, but introduces an additional delay after importing. However, it seems to be reasonable to do that, because importing is not done often, and display correctness is more important than speed? I will produce the simple patch after 74339 has landed (because the patch would conflict).
Depends on: 74339
Attached patch Patch v1 (obsolete) — — Splinter Review
This patch has the following changes: - declared forgotton JS variable certcache - removed unnecessary code to repeatedly query the nsIX509CertDB service - whenever we import a user, web site or email recipient certificate, we refresh the CA tab in addition
Javi, can you please review?
Comment on attachment 94182 [details] [diff] [review] Patch v1 r=javi
Attachment #94182 - Flags: review+
Alec, can you please review?
Comment on attachment 94182 [details] [diff] [review] Patch v1 Is there a reason you're explicitly setting certcache to null?
Attached patch Patch v2 — — Splinter Review
New patch with unnecessary null assignments removed.
Attachment #94182 - Attachment is obsolete: true
Comment on attachment 97222 [details] [diff] [review] Patch v2 sr=bryner
Attachment #97222 - Flags: superreview+
fixed on trunk
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Verified.
Status: RESOLVED → VERIFIED
Product: PSM → Core
Version: psm2.3 → 1.0 Branch
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: