Closed Bug 1729278 Opened 3 years ago Closed 3 years ago

LDAP query different from TB 78 in TB 91, showing no results

Categories

(Thunderbird :: Address Book, defect)

Thunderbird 91
defect

Tracking

(thunderbird_esr91+ fixed, thunderbird92 wontfix, thunderbird93+ fixed)

RESOLVED FIXED
94 Branch
Tracking Status
thunderbird_esr91 + fixed
thunderbird92 --- wontfix
thunderbird93 + fixed

People

(Reporter: martin.vallanzasca, Assigned: rnons)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0

Steps to reproduce:

Upgrade from TB 78 to TB 91

Actual results:

LDAP address book query showing no results

Thunderbird 78 LDAP query : (|(|(|(|(|(|(|(|(|(|(|(cn=test)(givenName=test))(sn=test))(mozillaNickname=test))(mail=test))(mozillaSecondEmail=test))(description=test))(o=test))(ou=test))(title=test))(mozillaWorkUrl=test))(mozillaHomeUrl=test))
Using our ldap server, we get results with this query

Thunderbird 91 query : (|(|(|(|(|(|(|(|(|(|(|(cn=test)(givenName=test))(sn=test))(mozillaNickname=test))(mail=test))(mozillaSecondEmail=test))(&(null=TRUE)(description=test)))(o=test))(ou=test))(title=test))(mozillaWorkUrl=test))(mozillaHomeUrl=test))
We get no results with this query. Seems like &(null=TRUE) is responsible, but i am not an ldap expert so cant get why ?

Expected results:

Show results

Some attrs in the query string have no attrMap value, so don't include them in the search filter.

Assignee: nobody → remotenonsense
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Regressed by: ldap-js
Blocks: tb91found
Target Milestone: --- → 94 Branch

Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/5bc657413e7b
Prevent null attr in LDAP search filter. r=darktrojan

Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED

Comment on attachment 9239749 [details]
Bug 1729278 - Prevent null attr in LDAP search filter. r=darktrojan

[Approval Request Comment]
Regression caused by (bug #): bug 1696625
User impact if declined: Searching ldap returns no result for some servers
Testing completed (on c-c, etc.): c-c
Risk to taking this patch (and alternatives if risky): low

Attachment #9239749 - Flags: approval-comm-esr91?
Attachment #9239749 - Flags: approval-comm-beta?

Comment on attachment 9239749 [details]
Bug 1729278 - Prevent null attr in LDAP search filter. r=darktrojan

[Triage Comment]
Approved for beta

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

Comment on attachment 9239749 [details]
Bug 1729278 - Prevent null attr in LDAP search filter. r=darktrojan

[Triage Comment]
Approved for esr91

Attachment #9239749 - Flags: approval-comm-esr91? → approval-comm-esr91+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: