Closed Bug 453698 Opened 16 years ago Closed 16 years ago

nsAbLDAPCard::SetMetaProperties assumes an entry has at least one objectClass

Categories

(MailNews Core :: LDAP Integration, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird 3.0a3

People

(Reporter: pi, Assigned: pi)

Details

Attachments

(1 file)

Attached patch PatchSplinter Review
Thunderbird 3 doesn't display any search results for queries sent to my school's (Michigan Tech's) LDAP server when bound anonymously.  It looks like the problem is that the result entries don't have an objectClass, and nsAbLDAPCard::SetMetaProperties [1] assumes that every entry has at least one object class (see lines 307-310 [2]).

The attached patch just clears m_objectClass earlier and returns NS_OK if rv is LDAP_DECODING_ERROR after trying to get the objectClass values, which is returned if the attribute isn't present.

[1] http://mxr.mozilla.org/comm-central/source/mailnews/addrbook/src/nsAbLDAPCard.cpp#280
[2] http://mxr.mozilla.org/comm-central/source/mailnews/addrbook/src/nsAbLDAPCard.cpp#307
Attachment #336906 - Flags: review?(bugzilla)
Attachment #336906 - Flags: superreview?(bienvenu)
Attachment #336906 - Flags: review?(bugzilla) → review+
I think it helps to cc David on bugs he's got review requests for.
Attachment #336906 - Flags: superreview?(bienvenu) → superreview+
Comment on attachment 336906 [details] [diff] [review]
Patch

sorry for the delay;
Keywords: checkin-needed
Checked in, changeset id: 315:c58a10a0b262
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 3.0b1
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: