Closed Bug 104927 Opened 23 years ago Closed 23 years ago

Implement a mechanism for getLDAPAttributes() functionality

Categories

(Core :: Preferences: Backend, defect)

defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 89137

People

(Reporter: mitesh, Assigned: mitesh)

References

()

Details

Attachments

(1 file, 2 obsolete files)

Craeted a new bug to track the progress of getLDAPAttributes() feature on the 
trunk (original bug 75955)
QA Contact: sairuh → lrg
Attached patch JS version of getLDAPAttributes (obsolete) — Splinter Review
The attached JS file will be evaluated as a part of the fix for bug 89137 in the 
new AutoConfig JS context
Status: NEW → ASSIGNED
Blocks: 104931
Should this bug now be resolved as a dup of 89137, since there appears to be a
newer version of the patch there?
let's keep this open since bug 89137 is more of a new JS context for autoconfig 
while this bug is a JS version of getLDAPAttributes() which will be evaluated in 
that context. I will post the newer version of getldap.js here.
Attached patch latest version of getldap.js (obsolete) — Splinter Review
Attachment #53647 - Attachment is obsolete: true
Review comments:

a) LDAPClass.prototype.QueryInterface: the comment is not correct,
only a single interface is being implemented here.  Because of this,
XPConnect can take care of the QI for you; you should be able to
throw out the entire QueryInterface method.

b) .onLDAPMessage: the indenting and spacing in the switch clause make
it hard to read; a more standard indentation strategy of 

    switch (aMessage.type) {

    case aMessage.RES_BIND:
        this.onLDAPBind(aMessage);
        break;

    case aMessage.RES_SEARCH_ENTRY:
        ...

would be easier, I think.

c) the event queue service and the current event queue appear to be
gotten in a couple of different places.  Can you declare them in the
global scope so that they only need to be gotten once?  This should
even work through callbacks, since JS functions are lexically closed.

d) in all the error-handling, the code quietly returns nothing if
there's a problem, which will make it difficult for admins to debug
the scripts they are writing.  Can we come up with a better strategy?  Maybe
throw up an nsIPrompt window with error info?
New patch with review comments addressed
Attached file updated version
Attachment #54807 - Attachment is obsolete: true
The new patch on bug 89137 will address this together with the other issues.

*** This bug has been marked as a duplicate of 89137 ***
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
yes, I agree :)
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: