6.0.0-beta1
7/6/25

[#7405] toHash fails on some vCards
Summary toHash fails on some vCards
Queue Turba
Queue Version 2.3
Type Bug
State No Feedback
Priority 2. Medium
Owners jan (at) horde (dot) org, karsten (at) horde (dot) org, wrobel (at) horde (dot) org
Requester gray (at) agora-net (dot) com
Created 09/27/2008 (6126 days ago)
Due
Updated 11/06/2008 (6086 days ago)
Assigned 10/23/2008 (6100 days ago)
Resolved 11/06/2008 (6086 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch Yes

History
11/06/2008 02:25:45 AM Chuck Hagenbuch State ⇒ No Feedback
 
10/23/2008 04:52:31 PM Jan Schneider Comment #5
State ⇒ Feedback
Reply to this comment
You are not using Turba 2.3. And the vCard is parsed perfectly for me 
with the current code.
10/07/2008 01:51:15 PM Jan Schneider State ⇒ Assigned
 
10/07/2008 01:35:28 PM gray (at) agora-net (dot) com Comment #4 Reply to this comment
Please provide an example vCard file.
:VCARD^M

VERSION:2.1^M

N:Blow;Joe;;;^M

FN:Blow, Joe^M

TITLE:^M

ORG:;^M

BDAY:19700327^M

TEL;HOME;VOICE;X-Synthesis-Ref1:302 834 9999^M

TEL;CELL;VOICE;X-Synthesis-Ref1:302 521 9999^M

EMAIL:Blow@somwhere.net^M

URL:^M

CATEGORIES:Personal^M

NOTE:^M

ADR;HOME:;;;;;;^M

PHOTO:^M

END:VCARD^M
10/07/2008 01:03:38 PM Jan Schneider Comment #3
State ⇒ Feedback
Reply to this comment
Please provide an example vCard file.
09/28/2008 01:02:50 AM Chuck Hagenbuch Assigned to Karsten Fourmont
Assigned to Jan Schneider
Assigned to Gunnar Wrobel
State ⇒ Assigned
 
09/27/2008 07:55:16 PM gray (at) agora-net (dot) com Comment #2
New Attachment: turba.patch Download
Reply to this comment
Ugh, the patch was missing.
09/27/2008 07:46:43 PM gray (at) agora-net (dot) com Comment #1
Priority ⇒ 2. Medium
State ⇒ Unconfirmed
Patch ⇒ Yes
Milestone ⇒
Queue ⇒ Turba
Summary ⇒ toHash fails on some vCards
Type ⇒ Bug
Reply to this comment
Turba was failing to convert some vCards during syncML.  I'm using the 
latest Synthesis Client on a Windows mobile device.



The incoming hash had two elements as such:

       [6] => Array



             [name] => TEL

             [params] => Array



                   [HOME] =>

                   [VOICE] =>

                   [X-SYNTHESIS-REF1] =>



             [value] => 302 834 9999

             [values] => Array



                   [0] => 302 834 9999





       [7] => Array



             [name] => TEL

             [params] => Array



                   [CELL] =>

                   [VOICE] =>

                   [X-SYNTHESIS-REF1] =>



             [value] => 302 521 9999

             [values] => Array



                   [0] => 302 521 999





The Cell would work, Home would not (Work was broken too).



Looks like the code is overly careful to work not overwrite work or 
phone tel, and sometimes misses it completely.

Saved Queries