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 300845 - can't import vcf file from apple addressbook.
can't import vcf file from apple addressbook.
Status: RESOLVED OBSOLETE
Product: evolution
Classification: Applications
Component: Importers
2.2.x (obsolete)
Other All
: Normal normal
: Future
Assigned To: evolution-addressbook-maintainers
Evolution QA team
evolution[interop]
Depends on:
Blocks: 327508 327510
 
 
Reported: 2005-04-16 09:18 UTC by Young-Ho Cha
Modified: 2008-10-31 12:41 UTC
See Also:
GNOME target: ---
GNOME version: 2.9/2.10


Attachments
sample vcf file from apple addressbook (3.37 KB, text/x-vcard)
2005-04-16 09:19 UTC, Young-Ho Cha
  Details
fill zero until meet char between 0x0000 and 0x00ff (612 bytes, patch)
2005-04-16 09:23 UTC, Young-Ho Cha
none Details | Review
sample vcf file from apple addressbook 2 (14.73 KB, text/directory)
2006-08-23 14:46 UTC, Young-Ho Cha
  Details

Description Young-Ho Cha 2005-04-16 09:18:41 UTC
Please describe the problem:
vcf file from apple addressbook can't import. i'll attach sample vcf file and patch.


Steps to reproduce:
1. import vcf file from apple addressbook
2. 
3. 


Actual results:
can't import

Expected results:
import vcf file

Does this happen every time?
yes

Other information:
in guess_vcard_encoding(), buffer size if fixed, and that produce invalid utf16
stream.
Comment 1 Young-Ho Cha 2005-04-16 09:19:56 UTC
Created attachment 45318 [details]
sample vcf file from apple addressbook
Comment 2 Young-Ho Cha 2005-04-16 09:23:03 UTC
Created attachment 45319 [details] [review]
fill zero until meet char between 0x0000 and 0x00ff
Comment 3 Young-Ho Cha 2005-04-19 07:27:42 UTC
this bug produced by invalid usage of fgets().

fgets() insert char '\0'(0x00) after 'new line'. but fix_utf16_endianness()
checks gunichar2 '\0'(0x0000), 

so utf16_to_utf8() returns NULL with invalid sequence error.

Comment 4 Johannes Berg 2005-06-17 09:49:15 UTC
This also happens when you're sent a vcard as an attachment from the apple
addressbook (in the particular instance here, the sender was using Microsoft
Entourage)
Comment 5 André Klapper 2005-09-30 01:05:51 UTC
confirming, targetting to 2.5 to force a decision on the patch.
Comment 6 André Klapper 2005-11-27 23:28:53 UTC
correcting the status whiteboard namespace to keep consistency.
sorry for the noise, my fault.
Comment 7 Devashish Sharma 2006-08-23 07:09:21 UTC
I have no problems importing this vcf file. It imports cleanly and with all the information. So i dont see the need to commit the patch attached here.Please check with the latest version of evolution.
Comment 8 Johannes Berg 2006-08-23 07:34:46 UTC
Works fine for me now as well, except that the particular file has the colon quoted in the URL property:

item2.URL;type=pref:http\://www.applecomputer.co.kr

and evolution doesn't unquote it. But I don't know the vcf format in that regard.
Comment 9 André Klapper 2006-08-23 07:58:21 UTC
removing old target milestone, at least.
Comment 10 Young-Ho Cha 2006-08-23 14:46:46 UTC
Created attachment 71464 [details]
sample vcf file from apple addressbook 2

This is an another vcf file that contains two contacts. 

Evolution still can't import this.
Comment 11 Kjartan Maraas 2007-01-30 15:40:03 UTC
Evolution doesn't recognize this file as a vCard at all here. Is it a valid vcf file? file(1) doesn't know it either, but it does recognize a .vcf file exported from evolution.
Comment 12 Akhil Laddha 2008-10-31 12:41:08 UTC
I really doubt someone is working on MAC compatibility. 

Thanks for taking the time to report this bug; however, closing due to lack of
response of the reporter, sorry. if you still see this issue with a current
release of evolution (2.24.x or later), please reopen. thanks in advance.