Closed
Bug 83360
Opened 24 years ago
Closed 3 months ago
improve LDAP datasource usefulness with XUL templates
Categories
(Directory Graveyard :: LDAP XPCOM SDK, defect, P3)
Directory Graveyard
LDAP XPCOM SDK
Tracking
(Not tracked)
RESOLVED
INCOMPLETE
mozilla1.2
People
(Reporter: dmosedale, Assigned: peter.vanderbeken)
Details
Attachments
(1 file, 2 obsolete files)
44.04 KB,
patch
|
dmosedale
:
review+
|
Details | Diff | Splinter Review |
Last week, peterv and I got to talking about how we could make the LDAP
datasource more useful with XUL templates. After a bunch of discussion, we came
up with a theory:
First, add a "DN" arc, so it's easy to tell what an entry's distinguished name is.
Second, add a "recursiveChild" arc, which is intended to be used as a
containment arc when you want to descend the entire trees below any entries that
are returned by your search (the default "child" arc, as implemented, does not
recursively descend retrieved entries, because this seems counter to the
intended semantics of ldap: search URIs).
Peter hacked like a madman and implemented this stuff; I'm attaching his patch
here. I'm on the hook to review the patch, but I probably won't get to that for
a few days, as I need to work my way through reviewing various addressbook/LDAP
integration changes first.
Reporter | ||
Comment 1•24 years ago
|
||
Comment 2•24 years ago
|
||
Let's get this out of my Netscape bug list.
Assignee: peterv → peter.vanderbeken
Updated•24 years ago
|
Status: NEW → ASSIGNED
Priority: -- → P3
Target Milestone: --- → mozilla0.9.2
Comment 3•24 years ago
|
||
Peter, thanks for your work, it works nicely.
Only one thing seems doesn't work correctly
- the folder icon is not displayed after loading
all data, the icon appears after first "refresh"
(after resizinf window, refocusing it,...).
Reporter | ||
Comment 4•24 years ago
|
||
peter, if you can get me a new patch that works with the CVS head (probably just
needs tweaks to SearchExt calls), I'll review it tout suite.
Comment 5•24 years ago
|
||
Updated•24 years ago
|
QA Contact: yulian → olgac
Updated•24 years ago
|
Target Milestone: mozilla0.9.3 → mozilla0.9.4
Keywords: nsenterprise
Assignee | ||
Comment 8•24 years ago
|
||
Giving dmose more time.
Target Milestone: mozilla0.9.4 → mozilla1.0
Assignee | ||
Comment 9•24 years ago
|
||
Chèvre!
Attachment #36531 -
Attachment is obsolete: true
Attachment #40517 -
Attachment is obsolete: true
Reporter | ||
Comment 10•24 years ago
|
||
I suck for not reviewing this much much sooner.
Comments:
a) One line of the patch sez:
+ XXX Could we just return true here
returning true would probably be ok, since every entry had better have
a dn. But the way you've written it is probably even better, since it
allows for extra error checking if the caller so desires it (most
datasource users will never even call this routine with the kNC_DN arc anyway).
OTOH, if (say) the XUL template builder calls this routine frequently,
the current impl might slow down things slightly. It's up to you.
:-)
b) towards the end of GetTargets:
+ // Error or the attribute was not there.
+ // XXX Do we need to do something about the real errors?
+ // XXX Just returning empty array for now.
It seems to me that if the attribute is not there, returning an empty
array is appropriate, but if there's a real error, an exception should
be thrown (and allowed to propagate to the caller of GetTargets).
Both of these are just my thoughts on this; you've got r=dmose: feel free to
check this patch in as-is, or after adjusting the patch as per these comments.
Your choice.
Anyway, all the comments that you added to the code were great; they made
reviewing this patch much easier than it otherwise would have been.
Reporter | ||
Updated•24 years ago
|
Attachment #58025 -
Flags: review+
Assignee | ||
Comment 11•24 years ago
|
||
Thank you Dan! I addressed your first comment in the patch that i checked in
(just check for delegate == null). I didn't do the second yet, though I plan to,
it's a border condition that no one should be hitting anyway.
Reporter | ||
Comment 12•24 years ago
|
||
This fix has been checked in, right?
Assignee | ||
Comment 13•23 years ago
|
||
I'm working on a new version of the datasource, but it won't be ready by 1.0.
Moving this out (also because NS managment might freak out seeing this bug on my
list *sigh*).
Updated•23 years ago
|
Target Milestone: mozilla1.0 → mozilla1.2
QA Contact: olgac → xpcom
Updated•3 months ago
|
Status: ASSIGNED → RESOLVED
Closed: 3 months ago
Resolution: --- → INCOMPLETE
You need to log in
before you can comment on or make changes to this bug.
Description
•