Closed
Bug 390187
Opened 18 years ago
Closed 18 years ago
PK11_FindCertFromNickname sets no error code when token not found
Categories
(NSS :: Libraries, defect, P2)
Tracking
(Not tracked)
RESOLVED
FIXED
3.11.8
People
(Reporter: nelson, Assigned: nelson)
References
(Blocks 1 open bug, )
Details
Attachments
(1 file, 1 obsolete file)
|
1.16 KB,
patch
|
julien.pierre
:
review+
rrelyea
:
superreview+
|
Details | Diff | Splinter Review |
When PK11_FindCertFromNickname gets a nickname with a colon in it, it calls
NSSTrustDomain_FindTokenByName to find a token with the given name.
That function is a "Stan" function. Stan functions do not call PORT_SetError.
So, if that function returns null, no error code is set.
Consequently, some random previously-set error code is displayed
NSSTrustDomain_FindTokenByName should set an error in this case.
The error should signify that no token was found by the desired name.
| Assignee | ||
Comment 1•18 years ago
|
||
Should do the job
Attachment #274534 -
Flags: review?(neil.williams)
| Assignee | ||
Updated•18 years ago
|
Priority: -- → P2
| Assignee | ||
Comment 2•18 years ago
|
||
Comment on attachment 274534 [details] [diff] [review]
patch v1
This patch is mutually exclusive with the patch for bug 390188.
One of these bugs should be marked WONTFIX.
Please vote for one.
Attachment #274534 -
Flags: superreview?(rrelyea)
| Assignee | ||
Comment 3•18 years ago
|
||
This patch fixes both functions in the file that have the same problem.
This patch is mutually exclusive with the one attached to bug 390188.
Please vote for one.
Assignee: nobody → nelson
Attachment #274534 -
Attachment is obsolete: true
Status: NEW → ASSIGNED
Attachment #274560 -
Flags: superreview?(rrelyea)
Attachment #274560 -
Flags: review?
Attachment #274534 -
Flags: superreview?(rrelyea)
Attachment #274534 -
Flags: review?(neil.williams)
| Assignee | ||
Updated•18 years ago
|
Attachment #274560 -
Flags: review? → review?(neil.williams)
| Assignee | ||
Updated•18 years ago
|
Target Milestone: --- → 3.11.8
Comment 4•18 years ago
|
||
Comment on attachment 274560 [details] [diff] [review]
patch v2 - fix both functions
r+ The ':' semantic has been in NSS a long time, With this patch, the users will get a less confusing error message if they mistype the token name.
Note: There is an element of the patch for bug 390188 that can still be picked up.... The colapsing of the error handling at the end of the function.
Attachment #274560 -
Flags: superreview?(rrelyea) → superreview+
| Assignee | ||
Comment 5•18 years ago
|
||
My own preference would be for the patch in bug 390188.
Having a colon in a friendly name in a PKCS#12 file seems to occur
fairly frequently. But there is a workaround, which is to prefix the
nickname with "NSS Certificate DB:"
| Assignee | ||
Comment 6•18 years ago
|
||
Fixed on trunk
Checking in pk11cert.c; new revision: 1.157; previous revision: 1.156
| Assignee | ||
Comment 7•18 years ago
|
||
Comment on attachment 274560 [details] [diff] [review]
patch v2 - fix both functions
Neil, please review this patch for the branch.
| Assignee | ||
Comment 8•18 years ago
|
||
Comment on attachment 274560 [details] [diff] [review]
patch v2 - fix both functions
Julien, since you wrote in bug 390188 that you'd prefer this patch, please review it.
Attachment #274560 -
Flags: review?(julien.pierre.boogz)
Updated•18 years ago
|
Attachment #274560 -
Flags: review?(julien.pierre.boogz) → review+
| Assignee | ||
Updated•18 years ago
|
Attachment #274560 -
Flags: review?(neil.williams)
| Assignee | ||
Comment 9•18 years ago
|
||
Thanks for the reviews
Checking in pk11wrap/pk11cert.c; new: 1.143.2.10; previous: 1.143.2.9
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Comment 10•18 years ago
|
||
(In reply to comment #7)
> (From update of attachment 274560 [details] [diff] [review])
> Neil, please review this patch for the branch.
>
Somehow my review request disappeared. Anyhow, r+.
You need to log in
before you can comment on or make changes to this bug.
Description
•