Closed
Bug 121332
Opened 24 years ago
Closed 24 years ago
AutoConfig: ProcessLDAPvalues doesn't seem to be implemented
Categories
(Core :: Preferences: Backend, defect)
Tracking
()
VERIFIED
FIXED
mozilla1.0.1
People
(Reporter: lrg, Assigned: bnesse)
References
Details
(Keywords: regression, Whiteboard: custrtm+ [adt1 rtm])
Attachments
(2 files, 1 obsolete file)
|
517 bytes,
text/plain
|
Details | |
|
3.16 KB,
patch
|
dmosedale
:
review+
alecf
:
superreview+
jud
:
approval+
|
Details | Diff | Splinter Review |
At this point i am not sure if this is a simple documentation error, or if the
code wasn't put in. I believe that we are able to issue a call from inside of
autoconfig to the LDAP servers, however it seems as though the data that is
being returned isn't being used. Previously this was handled with the
processLDAPvalues function, however, nothing seems to work now.
| Assignee | ||
Comment 2•24 years ago
|
||
The documentation (refering to the draft of the Factory documentation pg. 9-10)
indicates that the following functions as defined (in prefcalls.js):
- getLDAPAttributes(host, base, filter, attribs)
- getLDAPValue(str, key)
This documentation offers up some sample code, including a function named
processLDAPValues(), which the user is expected to supply as a callback function.
Looking at the code, it appears that the actual function being called by
getLDAPAttributes() may be getQueryResults(url), not processLDAPValues(url).
Please try supplying a callback with that name instead.
Summary: ProcessLDAPvalues doesn't seem to be implemented → AutoConfig: ProcessLDAPvalues doesn't seem to be implemented
I have tried testing it using this code:
function getQueryResults(aresult) {
var homepage = getLDAPValue(aresult, "webpage");
lockPref("browser.startup.homepage",homepage);
var uid = getLDAPValue(aresult,"uid");
lockPref("aim.session.screenname", uid);
}
But it isn't working. Can you see anything wrong with this code? If not then i
don't think we have found the solution we need.
| Assignee | ||
Comment 4•24 years ago
|
||
Then something is probably missing. It would be helpful if you could attach a
testcase that worked before the AutoConfig module breakout to the bug.
This attachment is a .jsc file which worked in the older implementation of
autoconfig.
The old implementation can be seen in the 20011019 branch build (among others.)
Keywords: nsbeta1,
regression
This feature was functional in the 6.2 release, but doesn't seem to be working now.
| Assignee | ||
Updated•24 years ago
|
Target Milestone: --- → Future
Updated•24 years ago
|
Stefanie meet the same question with netscape 622 solaris version when she want
to deploy netscape6 internal.
so my question is
does netscape 6 has passed enterprise deploy test?
Comment 10•24 years ago
|
||
Is this feature working on the existing 6.2.2 release on the Window platform?
If so, is the .jsc file in attachment 66837 [details] a working version for the 6.2.2
release? Thanks.
| Reporter | ||
Comment 11•24 years ago
|
||
I have just re-verified that the 6.2.2RTM build has the LDAP functionality
implemented. (The jsc file that is attached to this bug functions as we expect
it to.)
I hope that helps
Comment 12•24 years ago
|
||
Hi Jerry:
Can you do a test with the exact same jsc file (with needed modification) using
the Solaris 6.2.2 candidate? You may have done that before, but if it works for
the window platform according to lrg@netscape.com, then I would expect it to
work on ours. Thanks.
Comment 13•24 years ago
|
||
It works for me with netscape 6.2.2 for solaris and for windows.
Comment 14•24 years ago
|
||
http://bugzilla.mozilla.org/show_bug.cgi?id=75955 Another bug which matches the
description.
Comment 15•24 years ago
|
||
nraya: 75955 was the original implementation bug that tracked the implementation
of this feature. This appears to be a regression of that bug.
Comment 16•24 years ago
|
||
keyword back to nsbeta1 for nomination for rtm.
Comment 18•24 years ago
|
||
Hi, Brian: do we have a clue of what regressed this and how hard it is to fix
this bug? This feature used to work and now it doesn't :-\
Comment 19•24 years ago
|
||
This call is important for enterprise deployment. We do need this regression to
be fixed by rtm. Thanks.
| Assignee | ||
Comment 20•24 years ago
|
||
Tao, in short, no. The basic code to support it seems to be there. Why it
doesn't work is anybody's guess.
Comment 21•24 years ago
|
||
This is a showstopper for SBS.
Comment 22•24 years ago
|
||
Changing the target milestone to 1.0.1. This is a regression which we will need
for enterprise deployment.
Target Milestone: Future → mozilla1.0.1
| Assignee | ||
Comment 23•24 years ago
|
||
Patch to re-enable LDAPQuery and make AutoConfig errors localizable.
| Assignee | ||
Comment 24•24 years ago
|
||
Dan, can you r= this? Alec, can you sr?
This is a RTM Blocker. Thanks.
Status: NEW → ASSIGNED
Depends on: 141035
Comment 25•24 years ago
|
||
Comment on attachment 86835 [details] [diff] [review]
Patch
you should be using bundle.formatStringFromName() rather than msg.replace and
so forth.
also, what happens if the user hasn't defined processLDAPValues()?
Attachment #86835 -
Flags: needs-work+
| Assignee | ||
Comment 26•24 years ago
|
||
Patch which appropriately uses formatStringFromName (sorry...my bad). As
discussed with Alec, if the user doesn't supply the callback, it will throw a
JavaScript exception which will cause the error to be reported to the user...
which is what we would want to happen.
To summarize long discussion with Alec. This bug is a regression of bug 75955
(the original implementation), caused by the checkin for bug 89137 (which
seperated AutoConfig out into it's own module). The regression occurred during
the translation of the LDAP code from C++, in the original implementation, to
the current JavaScript implementation.
This checkin will in no way negatively affect users of 6.2. It works in 6.2 it
will work in 7 (with this patch). It just didn't work in between...
Attachment #86835 -
Attachment is obsolete: true
Comment 27•24 years ago
|
||
Comment on attachment 86856 [details] [diff] [review]
Better patch.
sr=alecf
Attachment #86856 -
Flags: superreview+
Comment 28•24 years ago
|
||
Attachment #86856 -
Flags: review+
Comment 29•24 years ago
|
||
adding various keywords to get it on the rtm radar. Nominating adt1.0.1 because
it looks like it has a r=/sr= patch. If it still needs work then please remove
the adt1.0.1. Thanks for fixing this so quickly
Updated•24 years ago
|
Keywords: mozilla1.0.1
Comment 30•24 years ago
|
||
adding adt1.0.1+. Please get drivers approval before checking into the branch.
| Assignee | ||
Comment 31•24 years ago
|
||
Checked in on the trunk.
| Assignee | ||
Comment 32•24 years ago
|
||
Closing as fixed on trunk.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Comment 33•24 years ago
|
||
Thank you for the fix, Brian. Would this fix go in to the 1.0.1 branch?
| Assignee | ||
Comment 34•24 years ago
|
||
Margaret, I am currently waiting for drivers approval to land on the branch.
Comment 35•24 years ago
|
||
Thanks for the update, Brian.
Updated•24 years ago
|
Attachment #86856 -
Flags: approval+
Comment 36•24 years ago
|
||
please checkin to the 1.0.1 branch. once there, remove the "mozilla1.0.1+"
keyword and add the "fixed1.0.1" keyword.
Keywords: mozilla1.0.1 → mozilla1.0.1+
| Reporter | ||
Comment 37•24 years ago
|
||
I have been able to verify this fix in the trunk using the 06/17 build
Status: RESOLVED → VERIFIED
| Assignee | ||
Comment 38•24 years ago
|
||
Patch checked in to the 1.0 branch.
Keywords: mozilla1.0.1+ → fixed1.0.1
Keywords: verified1.0.1
Keywords: fixed1.0.1
| Reporter | ||
Comment 39•24 years ago
|
||
Verified on WindowsXP, MacOSX, and Red Hat Linux 7
You need to log in
before you can comment on or make changes to this bug.
Description
•