Open Bug 8418 Opened 26 years ago Updated 3 years ago

[LDAP] LDAP should linkify values

Categories

(MailNews Core :: LDAP Integration, enhancement, P3)

enhancement

Tracking

(Not tracked)

People

(Reporter: phil, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: helpwanted)

In Communicator 4.x, when we display an LDAP entry in HTML, we consult a preference to see which attribute names are really URLs. The Admin Server implements dynamic mailing list (a list whose members are defined on-the-fly by an LDAP query) using an attribute called "mgrpdeliverto". The value of mgrpdeliverto is an LDAP URL. We could fix this problem in one of two ways: 1. Scan all the values coming back from the LDAP server to see if they're URLs 2. Add some more attributes, like mgrpdeliverto, to the list of attributes we know are URLs (as with labeleduri)
Status: NEW → ASSIGNED
Target Milestone: M9 → M12
move to m12, since Phil won't be back until m10
Since we won't have LDAP for PR1, I don't think this bug needs to be fixed for PR1
Might be nice to take option (2) and use the code RichP wrote for libmime linkifying as a service or something.
Target Milestone: M12 → M15
Phil found a way to weasel out of owning this bug. Reassigning.
Assignee: phil → selmer
Status: ASSIGNED → NEW
Mass moving to M16 to get these off the M15 radar. Please let me know if this is really an M15 stopper.
Target Milestone: M15 → M16
[LDAP] in summary
Summary: mozilla LDAP should linkify more stuff → [LDAP] mozilla LDAP should linkify more stuff
LDAP to M30, nobody, helpwanted
Assignee: selmer → nobody
Keywords: helpwanted
Target Milestone: M16 → M30
Blocks: 36557
Refers to 4.x, but the same would make sense for Mozilla. Just run the values of all field through ScanTXT, so we can pretty them up (e.g. linky URLs).
Summary: [LDAP] mozilla LDAP should linkify more stuff → [LDAP] LDAP should linkify values
Maybe the right thing to do here is make sure nsLDAPChannel is outputting clean LDIF format, and then make an LDIF->HTML stream converter. Or potentially even LDIF->DSML, and have some decent stylesheet for that. But first we have to get the code in the channel cleaned up enough to turn on in default builds, and there's still a little ways off.
Yup, if you have enough (unambiguous) info for that. You may still want to run the plaintext parts (e.g. freetext comments) through ScanTXT.
[Disclaimer: I'm coming very late to this bug. Thanks for the CC, though. ] Surely we want to stick with Moz-native formats (i.e. XML) as much as possible? Ideally, we'd output DSML, and stylesheet/XSLT that to HTML, or convert to LDIF. Maybe? There might be a slight snag in that DSML is a bit brain-dead in certain areas, and may not contain enough information to make this practical... Gerv
> Maybe the right thing to do here is make sure nsLDAPChannel is outputting > clean LDIF format, and then make an LDIF->HTML stream converter. Are you saying you're going to take the time to generate LDIF just so you can take more time to parse it? Wouldn't it be faster just to go straight from the binary LDAP SDK APIs straight to whatever we want? Of course, we'd use ScanTXT in either case.
Well, the deal is that nsLDAPChannel.cpp already generates LDIF (more-or-less) because the format was so drop-dead simple to generate that's what I wrote (I also didn't know about the existence of DSML at the time). I'm not terribly attached to keeping it the way it is, though it might be handy for future Mozilla-as-platform considerations both read and write LDIF.
Forgive me for being a little confused, but I can't see any references to LDIF in nsLDAPChannel.cpp. Are they elsewhere? <rant> Searching LXR for filenames with LDIF in produces spf2ldiff.c. What sort of person writes an entire file of code with zero comments and one-character variable names? </rant> Gerv
Gerv: it's not explicitly mentioned in nsLDAPChannel that the format being output is LDIF (yeah, it should be). But it is. The format for search output is really simple: dn: *some dn goes here* attribute1: value1 attribute2: value2 etc.
QA Contact: lchiang → yulian
is this bug still relevant? (bug cleaning)
Product: Browser → Seamonkey
Assignee: nobody → dmose
Component: Address Book → MailNews: LDAP Integration
Product: Mozilla Application Suite → Core
QA Contact: yulian → grylchan
Assignee: dmose → nobody
QA Contact: grylchan → ldap-integration
Product: Core → MailNews Core
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.