Modifying LDAP loookup in about:config causes lookup to fail

Bug #162060 reported by Kirk Bridger
4
Affects Status Importance Assigned to Milestone
thunderbird (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: thunderbird

When attempting to modify the LDAP lookup mapping in about:config (searching for attrmap), any change to a TB setting for HomeState causes the LDAP lookup to fail entirely.

Normal (working) flow:
1 - Open about:config, search for 'attrmap'
2 - Ensure that all settings are default
3 - Close TB
4 - Launch TB
5 - Open error console
6 - Open address book
7 - search for string 'br' in LDAP directory
8 - results populate normally

Now if I add a little change to the above, this reproducibly fails:

1 - Launch TB
2 - Open error console
3 - Open address book
4 - open about:config, search for 'attrmap'
5 - modify the setting ldap_2.servers.default.attrmap.HomeState from the default to a non-default value (for example from 'mozillaHomeState' to 'mozillaHomeState,st')
6 - close about:config
7 - search for a string in the address book, such as 'br'
8 - the error console displays the following error, and no results are returned:

Error: [Exception... "'Failure' when calling method: [nsIAbLDAPAttributeMapService::getMapForPrefBranch]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: chrome://messenger/content/addressbook/abCommon.js :: SetAbView :: line 665" data: no]
Source File: chrome://messenger/content/addressbook/abCommon.js
Line: 665

Line 665 reads:
    actualSortColumn = gAbView.init(uri, searchView, GetAbViewListener(), sortColumn, sortDirection);

Restoring about:config to default then allows the LDAP query to proceed normally, so it is the presence of this change to the attrmap that is causing this bug.

I've tried replacing the string 'mozillaHomeState' with:

1 - 'mozillaHomeState,st'
2 - 'st,mozillaHomeState'
3 - 'st'

None of these avoid the error, and the error is the same line.

I originally posted this as an addendum to another bug (161949), but believe it is actually its own bug (see https://bugs.launchpad.net/ubuntu/+source/thunderbird/+bug/161949)

ProblemType: Bug
Architecture: amd64
Date: Sun Nov 11 10:41:27 2007
DistroRelease: Ubuntu 7.10
NonfreeKernelModules: cisco_ipsec nvidia
Package: mozilla-thunderbird 2.0.0.8~pre071022+nobinonly-0ubuntu0.7.10
PackageArchitecture: all
SourcePackage: thunderbird
Uname: Linux Industrious 2.6.22-14-generic #1 SMP Sun Oct 14 21:45:15 GMT 2007 x86_64 GNU/Linux

Tags: apport-bug
Revision history for this message
Kirk Bridger (kbridger) wrote :
Revision history for this message
Daniel T Chen (crimsun) wrote :

Is this symptom still reproducible in 8.10?

Changed in thunderbird:
status: New → Incomplete
Revision history for this message
Kirk Bridger (kbridger) wrote :

Following my own steps above, this no longer produces an error in the error console and search results are returned.

Revision history for this message
Ralph Janke (txwikinger) wrote :

Close this since reporter declared it as fixed.

Changed in thunderbird (Ubuntu):
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.