Closed Bug 1794306 Opened 2 years ago Closed 2 years ago

thunderbird LDAP search queries contains cyrillic letters doesn't work

Categories

(MailNews Core :: Address Book, defect)

Thunderbird 102
defect

Tracking

(thunderbird_esr102+ fixed, thunderbird106 affected)

RESOLVED FIXED
107 Branch
Tracking Status
thunderbird_esr102 + fixed
thunderbird106 --- affected

People

(Reporter: r.gil, Assigned: rnons)

Details

Attachments

(2 files)

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:88.0) Gecko/20100101 Firefox/88.0

Steps to reproduce:

I edit the search filter, for example like this:
(&(objectClass=)(l=Ереван))
Then I save the settings

Actual results:

After that search don't work and edit filter shows like:
(&(objectClass=)(l=%D0%95%D1%80%D0%B5%D0%B2%D0%B0%D0%BD))
In prefs.js letters displayed correctly

Expected results:

Working LDAP search with filters in address-books

Attached image ldap.png
Product: Thunderbird → MailNews Core

Non-ascii characters in ldap filter are percent encoded when saving, need to decode when constructing nsILDAPURL back.

Assignee: nobody → remotenonsense
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Target Milestone: --- → 107 Branch

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/f8c45af1115f
Decode ldap search filter to support non-ascii characters. r=benc

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

Comment on attachment 9297917 [details]
Bug 1794306 - Decode ldap search filter to support non-ascii characters. r=benc

[Approval Request Comment]
Regression caused by (bug #): bug 1729862
User impact if declined: LDAP doesn't work if custom search filter contains non-ascii characters
Testing completed (on c-c, etc.): beta
Risk to taking this patch (and alternatives if risky): low

Attachment #9297917 - Flags: approval-comm-esr102?

Comment on attachment 9297917 [details]
Bug 1794306 - Decode ldap search filter to support non-ascii characters. r=benc

[Triage Comment]
Approved for esr102

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

Attachment

General

Creator:
Created:
Updated:
Size: