Closed Bug 240897 Opened 21 years ago Closed 21 years ago

Autoconfig doesn't work unless LDAP is built

Categories

(MailNews Core :: LDAP Integration, defect)

defect
Not set
major

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mcsmurf, Assigned: Bienvenu)

References

Details

(Keywords: fixed1.7, regression, Whiteboard: apparent fallout from bug 198168)

Attachments

(2 files)

Normally you could add prefs, lock prefs, etc. via the autoconfig function. To test it save the attached file in the Firefox program folder and add the following line to your greprefs/all.js: pref("general.config.filename", "mozilla.cfg"); Now start Firefox (create a new profile) and see the error "Failed to read the configuration file. Please contact your system administrator." But this is plain wrong, Filemon shows me that Firefox doesn't even try to access the file. The same file and same line in Mozilla works without problems. This worked with a earlier 0.8 trunk build (but i really can't name a build date for this). I also think TB might be affected, but someone would need to test this. CCing mscott, because he knows the autoconfig stuff, ccing mconner on request :)
decrypted this file contains the following entries: //BEGIN CE prefs try { lockPref("browser.startup.homepage", "http://www.heise.de"); lockPref("network.http.version", "1.1"); lockPref("network.proxy.http", "192.168.0.1"); lockPref("network.proxy.http_port", 8081); } catch(e) { displayError("lockedPref", e); }
Probably got the error/bug from a debug build (with enabled nspr logging): 0[274a80]: ###!!! ASSERTION: TypeError: Components.interfaces.nsILDAPConnection has no properties: 'Error', file d:/mozilla/tree6/mozilla/extensions/pref/autoconfig/src/nsJSConfigTriggers.cpp, line 120 0[274a80]: JS error in js from MCD server: TypeError: Components.interfaces.nsILDAPConnection has no properties
Got the bug, but now i wonder what to do: It fails because of --disable-ldap, when i enable it, everything's ok (this flag is also in official builds). So i wonder if autoconfig really needs to depend on LDAP here. Anyone has an idea how much KB it would cost to enable LDAP (i didn't look it up before rebuilding :/)?
we shouldn't have to enable ldap to use autoconfig... this is really just a lack of error checking for the presence of LDAP cc-ing dmose and bienvenu on this, since it seems to be their changes in bug 198168 that did the trick. this needs to go on branch for 1.7 IMO
Assignee: firefox → sspitzer
Severity: normal → major
Component: Preferences → LDAP Mail/News Integration
Keywords: regression
Product: Firefox → MailNews
QA Contact: mconnor → grylchan
Summary: Autoconfig doesn't work with a current FF trunk build → Autoconfig doesn't work unless LDAP is built
Whiteboard: apparent fallout from bug 198168
Version: unspecified → Trunk
Flags: blocking1.7?
probably just need a try catch.
Assignee: sspitzer → bienvenu
Blocks: 241532
Attached patch proposed fixSplinter Review
move the gVersion init to the place where we use it...
Comment on attachment 146943 [details] [diff] [review] proposed fix I haven't tried this, but it seems like it should work...
Attachment #146943 - Flags: superreview?(mscott)
Attachment #146943 - Flags: review?(dmose)
(In reply to comment #6) > Created an attachment (id=146943) > proposed fix > > move the gVersion init to the place where we use it... Yes, this patch fixes this bug for me.
thx for testing this, Frank. Sorry about the regression.
Attachment #146943 - Flags: superreview?(mscott) → superreview+
OS: Windows 2000 → All
Hardware: PC → All
Comment on attachment 146943 [details] [diff] [review] proposed fix r=dmose
Attachment #146943 - Flags: review?(dmose) → review+
Attachment #146943 - Flags: approval1.7?
Comment on attachment 146943 [details] [diff] [review] proposed fix low risk, but high usage for the stable branch!
Comment on attachment 146943 [details] [diff] [review] proposed fix a=chofmann for 1.7
Attachment #146943 - Flags: approval1.7? → approval1.7+
Status: NEW → RESOLVED
Closed: 21 years ago
Keywords: fixed1.7
Resolution: --- → FIXED
fixed in tbird .6 as well.
Flags: blocking1.7?
Product: MailNews → Core
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: