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)
MailNews Core
LDAP Integration
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)
265 bytes,
text/plain
|
Details | |
1002 bytes,
patch
|
dmosedale
:
review+
mscott
:
superreview+
chofmann
:
approval1.7+
|
Details | Diff | Splinter Review |
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 :)
Reporter | ||
Comment 1•21 years ago
|
||
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);
}
Reporter | ||
Comment 2•21 years ago
|
||
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
Reporter | ||
Comment 3•21 years ago
|
||
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 :/)?
Comment 4•21 years ago
|
||
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
Updated•21 years ago
|
Flags: blocking1.7?
Assignee | ||
Comment 6•21 years ago
|
||
move the gVersion init to the place where we use it...
Assignee | ||
Comment 7•21 years ago
|
||
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)
Reporter | ||
Comment 8•21 years ago
|
||
(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.
Assignee | ||
Comment 9•21 years ago
|
||
thx for testing this, Frank. Sorry about the regression.
Updated•21 years ago
|
Attachment #146943 -
Flags: superreview?(mscott) → superreview+
Updated•21 years ago
|
OS: Windows 2000 → All
Hardware: PC → All
Comment 10•21 years ago
|
||
Comment on attachment 146943 [details] [diff] [review]
proposed fix
r=dmose
Attachment #146943 -
Flags: review?(dmose) → review+
Reporter | ||
Updated•21 years ago
|
Attachment #146943 -
Flags: approval1.7?
Reporter | ||
Comment 11•21 years ago
|
||
Comment on attachment 146943 [details] [diff] [review]
proposed fix
low risk, but high usage for the stable branch!
Comment 12•21 years ago
|
||
Comment on attachment 146943 [details] [diff] [review]
proposed fix
a=chofmann for 1.7
Attachment #146943 -
Flags: approval1.7? → approval1.7+
Assignee | ||
Updated•21 years ago
|
Assignee | ||
Comment 13•21 years ago
|
||
fixed in tbird .6 as well.
Updated•21 years ago
|
Flags: blocking1.7?
Updated•20 years ago
|
Product: MailNews → Core
Updated•16 years ago
|
Product: Core → MailNews Core
You need to log in
before you can comment on or make changes to this bug.
Description
•