Closed
Bug 136948
Opened 23 years ago
Closed 23 years ago
Give better feedback when no valid certs for S/Mime are available
Categories
(MailNews Core :: Security: S/MIME, defect, P3)
Tracking
(Not tracked)
VERIFIED
FIXED
psm2.3
People
(Reporter: carosendahl, Assigned: KaiE)
References
Details
(Whiteboard: [ADT2 RTM])
Attachments
(2 files, 2 obsolete files)
11.63 KB,
patch
|
javi
:
review+
|
Details | Diff | Splinter Review |
12.48 KB,
patch
|
mscott
:
review+
mscott
:
superreview+
jesup
:
approval+
|
Details | Diff | Splinter Review |
If there are no certificates available for signing/encrypting, the radio and
checkboxes in the Mail&Newsgroup account settings are disabled. The select
buttons should be disabled as well.
A message indicating that no personal certificates are available to perform the
desired tasks would be of great benefit to the user at this point. It should
also indicate what they need to do and where to go, i.e.:
"Get a certificate and come back...."
Updated•23 years ago
|
Priority: -- → P2
Target Milestone: --- → 2.3
Reporter | ||
Comment 1•23 years ago
|
||
bug 140153 displayed a nuance where there was a certificate available,
unfortunately it was expired. This led to the select dialogs displaying with
empty drop down lists.
Bug 139637 also displays a nuance wherein a valid certificate containing email
references is allowed to be used by the sender even when the account name is
different from that within the certificate.
In the end, enabling the buttons only when there are valid (trusted, not
expired, not revoked, etc) certs corresponding to the account name or valid
certs that have no email references whatsoever (legal RFC degenerative case - do
we want this?) is the preferred use model.
Severity: normal → major
Keywords: nsbeta1
Summary: Disable Select buttons in mail account settings if no certs available → Disable Select buttons in mail account settings if no valid certs available
Reporter | ||
Comment 2•23 years ago
|
||
Added putterman, as this affects the user perception of the mail client.
Reporter | ||
Comment 3•23 years ago
|
||
Can we fix this, and at the same time change the screen to open a single dialog
that forces the user to enter both certs at the same time before allowing the
processing to occur? If we perform all of these checks up front and force the
user to configure both certs at the same time, we can alleviate some situations
that may lead to these somewhat random crashes occurring around this area.
Comment 4•23 years ago
|
||
In order to disable the select button, we must know that there are no suitable
certs.
Right now we only search the security database for certificates when you click
on Select. The proposed change would require querying the db at the time the
pane is opened.
The reason why the cert is displayed even if it's expired is because we don't go
to the database. The display is driven by the prefs.
We'll keep in on the list, but we must fix all correctness bugs first.
Assignee | ||
Comment 5•23 years ago
|
||
Given how slow the certificate management currently is, I don't recommend
querying the database each time we display that preference tab.
Would it be acceptable, if we did some something else, faster and much easier to
implement?
If the user clicks the select button, and there is no matching cert available,
could we bring up a message box saying "no suitable cert can be found" ?
Reporter | ||
Comment 6•23 years ago
|
||
That's fine actually. If we could then not allow them to click ok until both
are filled in, or to cancel and blank out both of them, we are done.
Millions of half-configured browser problems resolved.
Assignee | ||
Comment 7•23 years ago
|
||
Changing summary.
Not allowing to click OK in the prefs is not acceptable I think.
If a user wants to select a new cert, and none is available, we display an error
prompt, giving more information to the user.
In that case we do not change the current setting, even if there is already a
cert configured, and it can not currently be found. This makes sense, because a
cert might be temporarily absent, as it is stored in a hardware token, not
currently available.
The issue about "half configured browsers" is tracked with bug 120939.
Status: NEW → ASSIGNED
Summary: Disable Select buttons in mail account settings if no valid certs available → Give better feedback when no valid certs for S/Mime are available
Assignee | ||
Comment 8•23 years ago
|
||
I'm attaching a patch.
It prevents the cert selection dialog to show up, when the selection list is empty.
The user an informational message, when there are no certs that can be used.
Assignee | ||
Comment 9•23 years ago
|
||
Assignee | ||
Comment 10•23 years ago
|
||
Javi, can you please review?
Sean, can you please review the new strings at the end of the patch?
The message will be shown, when there are no certs available at all,
only invalid certs are available. I believe it will also be shown
if the user has certs on a smartcard, but the card is not inserted.
Assignee | ||
Comment 11•23 years ago
|
||
*** Bug 134943 has been marked as a duplicate of this bug. ***
Comment 12•23 years ago
|
||
> NoSigningCert=You don't have a valid cert that can be used for digitally
signing email messages.
How about this:
"Certificate Manager can't locate a valid certificate that can be used to
digitally sign your messages."
> +NoEncryptionCert=You don't have a valid cert that other people could use to
send you encrypted email messages.
Similar suggestion:
"Certificate Manager can't locate a valid certificate that other people can use
to send you encrypted email messages."
The user of "Certificate Manager" here may be controversial, since you're
actually in the Mail & News client at this point. But we already refer to Cert
Manager in Help, anyway, as the thing that manages certs for you, in general.
The user may in fact not have a cert, but it's also possible that they've just
forgotten to insert their smart card, or import the p12 file, or whatever. So it
seems like stating the problem as "our" (the software's) problem, rather than
the user's, might be more helpful.
In any case, at least some users may need to go to Cert Manager UI to import a
p12 file, tweak trust settings, etc., so mentioning the name here may be helpful
in that respect.
Note also that my suggested wording for the first case doesn't mention email,
since eventually you may also be able to sign newsgroup messages.
Adding jglick to the cc list in case she has an opinion on the use of "Cert
Manager" in this way.
Assignee | ||
Comment 13•23 years ago
|
||
Has Sean's suggested wording.
Attachment #83347 -
Attachment is obsolete: true
Assignee | ||
Comment 14•23 years ago
|
||
Attachment #83349 -
Attachment is obsolete: true
Comment 15•23 years ago
|
||
I don't have a problem with the term "Certificate Manager". Does this wording
appear on an Alert? If so, when does this alert get displayed?
Assignee | ||
Comment 16•23 years ago
|
||
Yes, it appears in an alert.
The alert is shown when the user tries to enable signing or encryption for a
message, but has not yet configured self's certificate.
Comment 17•23 years ago
|
||
Comment on attachment 83555 [details] [diff] [review]
Updated Patch
r=javi
Attachment #83555 -
Flags: review+
Comment 18•23 years ago
|
||
Comment on attachment 83556 [details] [diff] [review]
Same updated patch, but ignoring whitespace and -u10
carrying forward the
r=javi
sr=mscott
Attachment #83556 -
Flags: superreview+
Attachment #83556 -
Flags: review+
Assignee | ||
Comment 19•23 years ago
|
||
Checked in to trunk.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 20•23 years ago
|
||
Verified on 20020520 Trunk.
One comment: Contractions ("can't", "don't", etc.) should be fully expanded to
"cannot", "do not", and so on. Or try "is unable to"
Mark fixed1.0.0 once on the branch.
Status: RESOLVED → VERIFIED
Assignee | ||
Updated•23 years ago
|
Comment 21•23 years ago
|
||
minsuing for 1.0.1 - this doesn't seem so critical. if we blew the minus, please
re-nominate.
Keywords: mozilla1.0.1 → mozilla1.0.1-
Reporter | ||
Comment 22•23 years ago
|
||
Renominating. The fix has already been in the trunk for some time and is part
of a larger fix that has caused a vast majority of users problems when
configuring S/MIME or trying to encrypt/sign messages. It has received more
than enough QA coverage.
It is a low risk fix that goes a long way in making S/MIME more usable.
Keywords: mozilla1.0.1- → mozilla1.0.1
Comment 23•23 years ago
|
||
Comment on attachment 83556 [details] [diff] [review]
Same updated patch, but ignoring whitespace and -u10
please check into the 1.0.1 branch ASAP. once landed remove the
mozilla1.0.1+ keyword and add the fixed1.0.1 keyword
Attachment #83556 -
Flags: approval+
Updated•23 years ago
|
Keywords: mozilla1.0.1 → mozilla1.0.1+
Comment 24•23 years ago
|
||
adt1.0.1+ (on ADT's behalf) for checkin to the 1.0 branch. Pls check this in
asap. thanks!
Assignee | ||
Updated•23 years ago
|
Keywords: adt1.0.1+,
mozilla1.0.1+
You need to log in
before you can comment on or make changes to this bug.
Description
•