6.0.0-beta1
7/18/25

[#8366] vCard Parsing Errors with Property Groups
Summary vCard Parsing Errors with Property Groups
Queue Horde Framework Packages
Queue Version Git master
Type Bug
State Duplicate
Priority 2. Medium
Owners Horde Developers (at)
Requester bklang (at) horde (dot) org
Created 06/22/2009 (5870 days ago)
Due
Updated 01/27/2014 (4190 days ago)
Assigned 07/10/2009 (5852 days ago)
Resolved 01/27/2014 (4190 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
01/27/2014 07:54:40 PM Michael Rubinsky Comment #7
State ⇒ Duplicate
Reply to this comment
09/24/2010 10:21:51 PM Jan Schneider Version ⇒ Git master
 
07/10/2009 12:05:33 AM Chuck Hagenbuch Comment #6
Version ⇒ HEAD
State ⇒ Assigned
Assigned to Horde DevelopersHorde Developers
Reply to this comment
Thanks.
07/09/2009 08:48:35 PM Ben Klang Comment #5
New Attachment: SFMA.vcf Download
Reply to this comment
There was an example of the offending line in the first comment, but 
I'm now attaching the entire vCard to provide for a test case.
07/09/2009 05:09:29 AM Chuck Hagenbuch Comment #4 Reply to this comment
Okay - how about attaching an example at least?
07/08/2009 09:26:30 PM Ben Klang Comment #3
State ⇒ Unconfirmed
Reply to this comment
Nope.  I wish I did.  I did enough research to figure out a hack 
(stripping off property group names) but that is hardly an acceptable 
solution.  Unfortunately I'm not familiar enough with the vCard code 
to be able to construct a good solution.
06/28/2009 04:23:01 PM Chuck Hagenbuch Comment #2
State ⇒ Feedback
Reply to this comment
Do you have a patch? :)
06/22/2009 07:29:52 PM Ben Klang Comment #1
Priority ⇒ 2. Medium
State ⇒ Unconfirmed
Patch ⇒ No
Milestone ⇒
Queue ⇒ Horde Framework Packages
Summary ⇒ vCard Parsing Errors with Property Groups
Type ⇒ Bug
Reply to this comment
While attempting to import contacts exported from Apple's Address Book 
I found a limitation of the vCard processing code.  vCard allows for 
single attributes to have multiple values: for example several email 
addresses or multiple street addresses.  This mechanism may be 
accomplished using vCard Property Groups.  The way to signify this is 
to use a prefix on the field name such as "item1.", followed by 
"item2.", etc.  Horde Framework and Turba both expect all fields to be 
only named for their field (such as "ADR" for address) and so miss 
these fields with a prefix.  The symptom is that fields with a prefix 
get ignored.



Here is an example vCard snippet:

item1.ADR;type=HOME;type=pref:;;Attn\: Sharon Braunstein\nP.O. Box 
5396;Atlanta;GA;31107;



I found at least two places where this needs to be modified:

framework/iCalendar/iCalendar.php

turba/lib/Driver.php



From what I can tell Turba will not be able to store multiple 
attribute values, but we should be able to at least parse one of them 
to store.  In this case the item1 address had a type of "HOME" and the 
item2 had a type of "WORK" which can map safely into Turba.

Saved Queries