Ticket #1485830 (closed Bugs: fixed)

Opened 10 months ago

Last modified 7 months ago

Given name missing in vcard exports (LDAP)

Reported by: ael Owned by:
Priority: 5 Milestone: 0.3-stable
Component: Addressbook Version: svn-trunk
Severity: normal Keywords:
Cc:

Description

Only tested with ldap address book

Example export

BEGIN:VCARD
VERSION:3.0
FN:Andreas Engvall
N:Engvall;;;;
EMAIL;type=INTERNET;type=HOME;type=pref:andreas.engvall@arcticgroup.se
END:VCARD

Should probably be

BEGIN:VCARD
VERSION:3.0
FN:Andreas Engvall
N:Engvall;Andreas;;;
EMAIL;type=INTERNET;type=HOME;type=pref:andreas.engvall@arcticgroup.se
END:VCARD

I'm not that sure about the "type=INTERNET" and "type=HOME" parts for "EMAIL" either, these might not be what you want.

http://www.ietf.org/rfc/rfc2426.txt?number=2426

PHP version - 5.2.6, 5.2.9

mail server - not important, dovecot, cyrus, exchange, any

browser/os - firefox3, ie8, debian linux, windows vista

logs - are empty

reproducable - export contacts in vcard format from the address book and import rcube_contacts.vcf to the address book again

Change History

Changed 10 months ago by ael

Correction, reading the rfc...

Should be

BEGIN:VCARD
VERSION:3.0
FN:Andreas Engvall
N:Engvall;Andreas
EMAIL;TYPE=INTERNET,PREF:andreas.engvall@arcticgroup.se
END:VCARD

And why not add a few more standard attributes that also exists in most address books/address related ldap schemas, like ORG/o and TEL/telephoneNumber

Changed 10 months ago by alec

  • milestone changed from later to 0.2.2

Changed 9 months ago by thomasb

  • status changed from new to closed
  • resolution set to worksforme

Export works for me. If the firstname field is not empy, it also appears in the exported vcard (N:Contact;Sample;;;)

Changed 9 months ago by ael

  • status changed from closed to reopened
  • resolution worksforme deleted

Did you test it with an ldap address book? That's the only test I have done and it's not working with version 0.3-beta either.

Changed 8 months ago by alec

  • summary changed from Given name missing in vcard exports to Given name missing in vcard exports (LDAP)

Changed 8 months ago by alec

What's your 'firstname_field' in roundcube 'ldap_public' config?

Changed 8 months ago by ael

'givenName' if AD or OpenLDAP with smbldap-tools added users

Changed 8 months ago by ael

the openldap log seems correct tho

... Jul 28 21:08:39 poseidon slapd[1078]: conn=36172 op=1 SRCH attr=cn mail sn givenName Jul 28 21:08:39 poseidon slapd[1078]: conn=36172 op=1 SEARCH RESULT tag=101 err=0 nentries=1 text= Jul 28 21:08:39 poseidon slapd[1078]: conn=36172 op=2 UNBIND

Changed 7 months ago by alec

  • status changed from reopened to closed
  • resolution set to fixed

Fixed in r2888.

Note: See TracTickets for help on using tickets.