Closed Bug 1716861 Opened 4 years ago Closed 4 years ago

LDAP address books can't cope with multiple searches from browser.contacts.quickSearch at the same time

Categories

(Thunderbird :: Address Book, defect)

defect

Tracking

(thunderbird_esr78 wontfix, thunderbird90 affected, thunderbird91? fixed)

RESOLVED FIXED
92 Branch
Tracking Status
thunderbird_esr78 --- wontfix
thunderbird90 --- affected
thunderbird91 ? fixed

People

(Reporter: standard8, Assigned: rnons)

References

Details

Attachments

(1 file)

In bug 1679364 I added the capability to read from read-only address books via contacts.quickSearch.

In Conversations I have been trying to speed up contacts access. One thing I do is to kick off multiple contacts searches at the same time.

It appears that kicking off multiple searches for LDAP fails to resolve the promises for all the searches.

I think we either need to disable remote searches via quickSearch or fix it. Whilst we could warn add-on authors, I suspect you could get circumstances where two add-ons do a search at the same time (and as LDAP searches can take a second or two, you'd be more likely to hit it).

Adding tracking request, as I think we should come to a resolution on this before 91 ships.

Flags: needinfo?(remotenonsense)
Regressed by: ldap-js

We can only investigate this after bug 1716858.

Depends on: 1716858
Flags: needinfo?(remotenonsense)
No longer regressed by: ldap-js

Just a reminder that the other bug is fixed now.

Flags: needinfo?(remotenonsense)

It was implemented by following nsAbLDAPDirectory.cpp to call stopSearch in search. This patch removes the stopSearch call in search, so that concurrent searches work.

Assignee: nobody → remotenonsense
Status: NEW → ASSIGNED
Flags: needinfo?(remotenonsense)
Attachment #9230440 - Attachment description: Bug 1716861 - Support concurrent searches in LDAPDirectory.jsm. r=darktrojan → Bug 1716861 - Support concurrent searches in LDAP Directory. r=darktrojan
Target Milestone: --- → 92 Branch

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/c3b91b49b068
Support concurrent searches in LDAP Directory. r=darktrojan

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

Comment on attachment 9230440 [details]
Bug 1716861 - Support concurrent searches in LDAP Directory. r=darktrojan

[Triage Comment]
Goes with other address book bugs that are being uplifted to Thunderbird 91beta.

Attachment #9230440 - Flags: approval-comm-beta+
Component: Add-Ons: Extensions API → Address Book
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: