After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 605454 - Contact display depends upon LDAP attribute ordering
Contact display depends upon LDAP attribute ordering
Status: RESOLVED DUPLICATE of bug 652173
Product: evolution-data-server
Classification: Platform
Component: Contacts
2.28.x (obsolete)
Other Linux
: Normal normal
: ---
Assigned To: evolution-addressbook-maintainers
Evolution QA team
evolution[ldap]
Depends on:
Blocks:
 
 
Reported: 2009-12-26 02:14 UTC by Matthew Barnes
Modified: 2018-12-12 11:52 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Matthew Barnes 2009-12-26 02:14:55 UTC
Forwarding from a Fedora bug:
https://bugzilla.redhat.com/show_bug.cgi?id=548521


When displaying contacts from an LDAP addressbook, the order in which an
entry's attributes are returned affects the way the contact is displayed.

If the LDAP server returns the following entry:

     dn: cn=Joe Bloggs,dc=example,dc=com
     objectClass: person
     objectClass: inetOrgPerson
     givenName: Joe
     sn: Bloggs
     cn: Joe Bloggs
     mail: joe.bloggs@example.com

then the default contact display is headed just "Bloggs" at the top of both the
address card pane and the preview pane, and the person's given name is not
displayed anywhere in the preview pane.

If the LDAP server returns the entry with the attributes in a slightly
different order, however ('cn' before 'sn'):

     dn: cn=Joe Bloggs,dc=example,dc=com
     objectClass: person
     objectClass: inetOrgPerson
     cn: Joe Bloggs
     givenName: Joe
     sn: Bloggs
     mail: joe.bloggs@example.com

then the contact is correctly headed "Bloggs, Joe" in both the address card
pane and the preview pane.

This shouldn't be the case - the LDAP specification stipulates that the server
may return an entry's attributes in any order.  Evolution should be using the
value of 'cn' if available, whether or not it precedes 'sn' in the returned
entry.

This is with evolution-2.28.0-2.fc12.i686 and
evolution-data-server-2.28.0-1.fc12.i686
Comment 1 Milan Crha 2018-12-12 11:52:49 UTC
This had been fixed with changes from bug #652173, as kind of a side effect, thus I'm closing this as a duplicate of it.

*** This bug has been marked as a duplicate of bug 652173 ***