Opened 4 years ago

Closed 4 years ago

#1485830 closed Bugs (fixed)

Given name missing in vcard exports (LDAP)

Reported by: ael Owned by:
Priority: 5 Milestone: 0.3-stable
Component: Addressbook Version: git-master
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 (9)

comment:1 Changed 4 years 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

comment:2 Changed 4 years ago by alec

  • Milestone changed from later to 0.2.2

comment:3 Changed 4 years ago by thomasb

  • Resolution set to worksforme
  • Status changed from new to closed

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

comment:4 Changed 4 years ago by ael

  • Resolution worksforme deleted
  • Status changed from closed to reopened

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.

comment:5 Changed 4 years ago by alec

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

comment:6 Changed 4 years ago by alec

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

comment:7 Changed 4 years ago by ael

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

comment:8 Changed 4 years 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

comment:9 Changed 4 years ago by alec

  • Resolution set to fixed
  • Status changed from reopened to closed

Fixed in [0131ec97].

Note: See TracTickets for help on using tickets.