Closed
Bug 90535
Opened 23 years ago
Closed 23 years ago
default searchFilterTemplate misses people with a middle name in their sn
Categories
(MailNews Core :: LDAP Integration, defect, P3)
MailNews Core
LDAP Integration
Tracking
(Not tracked)
VERIFIED
FIXED
mozilla0.9.3
People
(Reporter: dmosedale, Assigned: dmosedale)
References
Details
Attachments
(1 file)
2.92 KB,
patch
|
Details | Diff | Splinter Review |
In .directory, klui@lui-ken.corp.hp.com (Ken Lui) wrote: > I've noticed that LDAP autocompletion works differently from > Communicator 4.76 and Mozilla 0.9.1/0.9.2. In Communicator, if > I enter "John Smith" and the person in the directory is "John E. > Smith", it finds it no problem, but Mozilla doesn't find it > unless I enter "John*Smith". The problem here is that the default searchFilterTemplate doesn't deal correctly with this; I think I misunderstood the equivalent code in 4.x slightly when I was figuring out what default to use. This should be pretty straightforward to fix, I think, because the template format should be able to handle this out-of-the-box.
Assignee | ||
Comment 1•23 years ago
|
||
Another interesting thing this brings up is that chars in the input string that have special meaning in LDAP search filters are neither quoted nor stripped; they probably ought to be, though one could conceivably argue that this is a feature. My gut feeling is that we probably want to quote them.
Target Milestone: --- → mozilla0.9.3
Assignee | ||
Updated•23 years ago
|
Status: NEW → ASSIGNED
Priority: -- → P3
Assignee | ||
Comment 2•23 years ago
|
||
The rationale behind the default search filter currently in place: (|(cn=%v*)(mail=%v*)(sn=%v*)) is documented in bug 85315. My current theory is that maybe we want the following search filter as the default: (|(cn=%v1*%v2-*)(mail=%v1*%v2-*)(sn=%v1*%v2-*)) Any thoughts?
Assignee | ||
Comment 3•23 years ago
|
||
OK, after some testing, that last proposal turns up way too many false hits. I'll have to play around some more. Additionally, the quoting thing is going to need to be a separate bug, in part because the quoting for LDAP v2 and LDAP v3 search filters is different.
Assignee | ||
Comment 4•23 years ago
|
||
Adding bug finder to the CC.
Assignee | ||
Comment 5•23 years ago
|
||
Turns out the reason I was seeing lots of extraneous returns with the proposed change was that there was bug in nsLDAPService::CountTokens(). After fixing this, it appears to me to fix the problem, and seems (so far) like it's generating reasonable results.
Assignee | ||
Comment 6•23 years ago
|
||
Comment 8•23 years ago
|
||
r=leif, looks good. -- Leif
Comment 9•23 years ago
|
||
rs=darin
Assignee | ||
Comment 10•23 years ago
|
||
Fix checked in.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Whiteboard: have patch, need r=
Updated•20 years ago
|
Product: MailNews → Core
Updated•16 years ago
|
Product: Core → MailNews Core
You need to log in
before you can comment on or make changes to this bug.
Description
•