Closed Bug 74098 Opened 23 years ago Closed 23 years ago

nsILDAPOperation.searchExt lacking attributes parameter

Categories

(Directory :: LDAP XPCOM SDK, defect, P2)

defect

Tracking

(Not tracked)

VERIFIED FIXED
mozilla0.9.2

People

(Reporter: Paul.Sandoz, Assigned: dmosedale)

References

Details

(Keywords: perf, Whiteboard: [PDT+] have tested fix, r=, sr=, a=; need open tree)

Attachments

(4 files)

The nsILDAPURL interface now has support for the return attributes parameter.

It would be good if this could be used in conjuction with the 
nsILDAPOperation.seatchExt method which is currently lacking support for return 
attributes.

In addition, as per comment by Dan Mosedale, it will optmize
autocomplete searches.
Status: NEW → ASSIGNED
Depends on: 70611
Blocks: 17880
Keywords: perf
Priority: -- → P3
Target Milestone: --- → mozilla0.9.1
reassign to Olga as QA contact
QA Contact: yulian → olgac
Target Milestone: mozilla0.9.1 → mozilla0.9.2
Priority: P3 → P2
This patch doesn't actually enable the autocomplete session to limit the search
results to a set of attributes. However, I've verified the functionality with a
hardcoded set of attributes in the autocomplete, and it does indeed limit the
results to the requested attributes.

Dmose, review please.

-- Leif
Attached patch 2nd patchSplinter Review
r=dmose@netscape.com
Summary: nsILDAPOperation.seatchExt lacking attributes parameter → nsILDAPOperation.searchExt lacking attributes parameter
mscott, can you SR this please?

thanks,

-- leif
Keywords: patch
Whiteboard: SR= requested on 6/12 from mscott
PDT+ per 6/12 mtg.
Whiteboard: SR= requested on 6/12 from mscott → [PDT+] SR= requested on 6/12 from mscott
sr=mscott
a= asa@mozilla.org for checkin to the trunk.
(on behalf of drivers)
Blocks: 83989
Checked in. (Many thanks to srilatha for testing on Mac and PC)

-- Leif
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Reopening, as there's still one piece left to do: change the autocomplete caller
to do the right thing regarding this parameter.
Taking, since this final bit is in my code.
Assignee: leif → dmose
Status: REOPENED → NEW
I'm attaching a patch that gives the outputFormat parser the ability to work in
two modes: one generates an autocomplete item (like the existing code in the
tree does), and the other builds up an XPCOM array of the attributes needed by
outputFormat.  Whenever SetOutputFormat is called, this array is built up and
cached in the session.  Whenever SearchExt() is called, this array is used to
limit the attributes requested.
Status: NEW → ASSIGNED
Keywords: review
Whiteboard: [PDT+] SR= requested on 6/12 from mscott → [PDT+]
Tiny tweak to the patch suggested by dougt eliminates unnecessary logic around
freeing of mSearchAttrs.
r=
dougt said in chat that it's okay to use his stamp as sr=, so i'm gonna do that.
Whiteboard: [PDT+] → [PDT+] have sr=; need r=, a=
nsLDAPAutoCompleteSession patch has been tested on Mac, Windows, Linux debug
builds, as well as commercial linux optimized builds.
Whiteboard: [PDT+] have sr=; need r=, a= → [PDT+] have tested fix, sr=; need r= (requested), a=
looks good, R=ducarroz
Whiteboard: [PDT+] have tested fix, sr=; need r= (requested), a= → [PDT+] have tested fix, r=, sr; need a=
a= asa@mozilla.org for checkin to the trunk.
(on behalf of drivers)
Whiteboard: [PDT+] have tested fix, r=, sr; need a= → [PDT+] have tested fix, r=, sr=, a=; need open tree
Fix checked in.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago23 years ago
Resolution: --- → FIXED
code is in, marking as verified 
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: