6.0.0-beta1
7/4/25

[#10349] Sync with Android / Funambol
Summary Sync with Android / Funambol
Queue Synchronization
Queue Version Git master
Type Enhancement
State Resolved
Priority 1. Low
Owners jan (at) horde (dot) org
Requester hordebug (at) zulan (dot) net
Created 07/17/2011 (5101 days ago)
Due
Updated 02/03/2012 (4900 days ago)
Assigned 12/19/2011 (4946 days ago)
Resolved 12/19/2011 (4946 days ago)
Milestone
Patch No

History
02/03/2012 03:41:53 PM robert (at) schetterer (dot) org Comment #26 Reply to this comment
Thanks. And it works now :)
for info it also works here with patch from
http://bugs.horde.org/ticket/10912
on patched 2.3.6 Turba, with funambol android latest 10.0.8
Great Job Jan
02/03/2012 02:53:26 PM szimszon (at) oregpreshaz (dot) eu Comment #25 Reply to this comment
Thanks. And it works now :)
02/03/2012 02:28:35 PM Jan Schneider Comment #24 Reply to this comment
I see in horde.log:

2012-02-03T14:30:02+01:00 WARN: HORDE [turba] PHP ERROR: explode() 
expects parameter 2 to be string, array given [pid 11512 on line 
1063 of "...a/lib/Driver.php"]

too...
This doesn't have anything to do with this ticket. See bug #10912.
02/03/2012 01:47:34 PM szimszon (at) oregpreshaz (dot) eu Comment #23 Reply to this comment
I see in horde.log:

2012-02-03T14:30:02+01:00 WARN: HORDE [turba] PHP ERROR: explode() 
expects parameter 2 to be string, array given [pid 11512 on line 1063 
of "...a/lib/Driver.php"]

too...
02/03/2012 01:45:22 PM szimszon (at) oregpreshaz (dot) eu Comment #22 Reply to this comment
I sent collected data about the sync process to Jan...
02/03/2012 01:04:14 PM robert (at) schetterer (dot) org Comment #21 Reply to this comment

[Show Quoted Text - 18 lines]
no idea , iam still on 2.3.6 Turba
02/03/2012 12:37:56 PM szimszon (at) oregpreshaz (dot) eu Comment #20 Reply to this comment
It was working with prev. turba patched with Driver.php.patch in this issue...

[Show Quoted Text - 14 lines]
02/03/2012 12:07:18 PM robert (at) schetterer (dot) org Comment #19 Reply to this comment
With turba 3.0.11 I still doesn't get work and mobile phone number 
from Horde to Funambol android :(

Should I open a new issue?
Hi , i think its mostly a client issue
try an older android funambol version
http://d.funambol.com/Android/release/9.0.3/funambol-android-sync-client-9.0.3.apk
works at my motorola milestone
i allready reported it to funambol, some others did patches at them
seems they dont care, dont know if Horde people get that fixed on the 
server side
guess this eats much time for debug
Regards
02/03/2012 11:42:04 AM szimszon (at) oregpreshaz (dot) eu Comment #18 Reply to this comment
With turba 3.0.11 I still doesn't get work and mobile phone number 
from Horde to Funambol android :(

Should I open a new issue?
12/19/2011 04:09:22 PM Jan Schneider Comment #17
New Attachment: bug10349.patch Download
Reply to this comment
This is a backport patch for Horde 3/Turba 2.
12/19/2011 02:41:27 PM Jan Schneider Comment #16
State ⇒ Resolved
Reply to this comment
The patches were incomplete, because to properly implement this, 
ticket #7248 had to be fixed first. Because of this, it cannot be 
backported officially, because that would break BC.
12/19/2011 02:34:09 PM Git Commit Comment #15 Reply to this comment
Changes have been made in Git for this ticket:

[jan] Set VOICE parameter when exporting phone numbers to vCard 
(Request #10349).

  4 files changed, 37 insertions(+), 29 deletions(-)
http://git.horde.org/horde-git/-/commit/0eb3c9de6cb4577018a731428fce11fb2beb52ea
12/19/2011 02:32:06 PM Jan Schneider Priority ⇒ 1. Low
State ⇒ Assigned
Type ⇒ Enhancement
 
11/22/2011 02:22:45 PM robert (at) schetterer (dot) org Comment #14 Reply to this comment
Based on the prev. patch...
will sombody this backport
to (kronolith) H3 (2.3.5) ?
11/21/2011 10:18:46 PM szimszon (at) oregpreshaz (dot) eu Comment #13
New Attachment: Driver.php.patch Download
Reply to this comment
Based on the prev. patch...
11/13/2011 08:53:24 PM Jan Schneider State ⇒ Assigned
Assigned to Jan Schneider
 
10/10/2011 04:44:43 PM Jan Schneider Deleted Original Message
 
09/22/2011 02:44:50 PM szimszon (at) oregpreshaz (dot) eu Comment #12 Reply to this comment
In DB I have in turba_objects '--' in  object_anniversary column after 
the contact is synced from funambol client (phone) to Horde Turba 
3.0.9 and I get an error like this:

--

Évforduló
Helyrehozhatatlan hiba történt
Failed to parse time string (--)

1. Turba_View_Contact->html() 
/srv/www/oregpreshaz.eu/ssl/horde2.oregpreshaz.eu/turba/contact.php:113
2. Horde_Form->renderInactive() 
/srv/www/oregpreshaz.eu/ssl/horde2.oregpreshaz.eu/turba/lib/View/Contact.php:58
3. Horde_Form_Renderer->renderFormInactive() /usr/share/php/Horde/Form.php:531
4. Horde_Form_Renderer->_renderForm() 
/usr/share/php/Horde/Form/Renderer.php:226
5. Horde_Core_Ui_VarRenderer->render() 
/usr/share/php/Horde/Form/Renderer.php:276
6. Horde_Core_Ui_VarRenderer_Html->_renderVarDisplay_monthdayyear() 
/usr/share/php/Horde/Core/Ui/VarRenderer.php:85
7. Horde_Form_Type_monthdayyear->formatDate() 
/usr/share/php/Horde/Core/Ui/VarRenderer/Html.php:1356
8. Horde_Form_Type_monthdayyear->getDateOb() 
/usr/share/php/Horde/Form/Type.php:2897
9. Horde_Date->__construct() /usr/share/php/Horde/Form/Type.php:2879

Details
The full error message is logged in Horde's log file, and is shown 
below only to administrators. Non-administrative users will not see 
error details.

Horde_Date_Exception Object
(
     [details] =>
     [message:protected] => Failed to parse time string (--)
     [string:Exception:private] =>
     [code:protected] => 0
     [file:protected] => /usr/share/php/Horde/Date.php
     [line:protected] => 253
     [trace:Exception:private] => Array
         (
             [0] => Array
                 (
                     [file] => /usr/share/php/Horde/Form/Type.php
                     [line] => 2879
                     [function] => __construct
                     [class] => Horde_Date
                     [type] => ->
                     [args] => Array
                         (
                             [0] => --
                         )

                 )

08/12/2011 11:58:06 PM js-horde (at) jk1 (dot) net Comment #11
New Attachment: 0001-turba-support-vcard-SyncML-requests-for-TEL-round-2.patch Download
Reply to this comment
Please disregard my prior patch... I was manually merging my test 
server code back to my git repo and put some code in the wrong place.   
This one should be better.

08/12/2011 07:55:17 PM js-horde (at) jk1 (dot) net Comment #10
New Attachment: 0001-turba-support-vcard-SyncML-requests-for-TEL-that-inc.patch
Reply to this comment
I don't know how to re-open this bug, but I believe it was only 
partially resolved.  I have a patch that resolves the remaining issues 
that I will attach to this bug.
I am trying to sync an Android Nexus S with Horde (Contacts and Calendar for
now).

Horde --> Droid
Home Phone: MISSING!
Work Phone: MISSING!
I have noticed that Other Phone, Work Email and Home Email (if your 
turba is configured for those fields) also do not sync from Horde to 
the phone.  It appears that this is a result of the Funambol client 
explicitly specifying the TEL fields' types with the "VOICE" param 
(which I believe is the implicit default) for the phone numbers and 
likewise, specifying "INTERNET" for the EMAIL fields.  I have extended 
Turba's Driver.php to accept requests that explicitly specify these 
params, and to respond appropriately.  With this patch, my fields now 
sync properly to my Android phone.
Droid --> Horde
Email: MISSING!
Other Phone: Missing
These are missing not because of a bug, but because the original 
submitter was missing the fields in his configuration. I was able to 
get working by simply adding the appropriate fields to the database 
and to Turba's attributes.php and backends.php.  For example:
ALTER TABLE turba_objects ADD object_workemail VARCHAR(255);
ALTER TABLE turba_objects ADD object_homeemail VARCHAR(255);
ALTER TABLE turba_objects ADD object_phone VARCHAR(25);

Then to attributes.php:
$attributes['workEmail'] = array(
     'label' => _("Work Email"),
     'type' => 'email',
     'required' => false,
     'params' => array('allow_multi' => false, 'strip_domain' => 
false, 'link_compose' => true)
);
$attributes['homeEmail'] = array(
     'label' => _("Home Email"),
      'type' => 'email',
      'required' => false,
      'params' => array('allow_multi' => false, 'strip_domain' => 
false, 'link_compose' => true)
}

and to backends, right after
          'email' => 'object_email',
add
         'phone' => 'object_phone',
         'homeEmail' => 'object_homeemail',
         'workEmail' => 'object_workemail',
then in the "Communications" section in that same file, be sure to add 
the new phone, homeEmail and workEmail fields.
08/09/2011 06:30:08 PM Git Commit Comment #9 Reply to this comment
Changes have been made in Git for this ticket:

BFN #10349

  1 files changed, 2 insertions(+), 0 deletions(-)
http://git.horde.org/horde-git/-/commit/0f152049636616360b29e9b6df5972a1975c2d97
08/09/2011 04:52:43 PM Git Commit Comment #8 Reply to this comment
Changes have been made in Git for this ticket:

Fixed funambol allday setting for event sync
Bug: 10349
Signed-off-by: Jan Schneider <jan@horde.org>

  1 files changed, 1 insertions(+), 1 deletions(-)
http://git.horde.org/horde-git/-/commit/4b08fe2e43b4157aecbb072eaf5badb45cf7c2ae
08/09/2011 04:44:01 PM hordebug (at) zulan (dot) net Comment #7 Reply to this comment
The fix for the calendar allday issue appears to be fairly straightforward:

http://zulan.net/0001-Fixed-funambol-allday-setting-for-event-sync.patch

(works fine for me)
08/09/2011 04:07:57 PM hordebug (at) zulan (dot) net Comment #6 Reply to this comment
Sorry for the late feedback. I was having some trouble setting up the 
git version, but I got the latest one running.

The calendar sync from Horde -> Android works partially now.
The start and end time is missing on my synced android.

I believe the reason might be in the allday description the server 
sends to the client:

DTSTART:20110828T100000Z
DTEND:20110828T160000Z
X-FUNAMBOL-ALLDAY:1
DTSTAMP:20110809T153548Z
DCREATED:20110809T153429Z

With respect to contacts:

Android -> Horde

This created an invalid contact, because the anniversary contained the 
string "--", that crashed the PHP script. The client vcard contained:

X-ANNIVERSARY:

Email is now working!

Instant messanger is not working. The client sends:
EMAIL;INTERNET;HOME;X-FUNAMBOL-INSTANTMESSENGER:f9p&#64;ja.example.com

Horde -> Android

Home Phone and Work Phone are still missing.
Instant messanger is also missing.
Those are not included in the server.xml
08/06/2011 04:56:05 PM Michael Rubinsky Comment #5
State ⇒ Feedback
Reply to this comment
ping?
07/17/2011 12:18:28 PM Michael Rubinsky Comment #4
Priority ⇒ 2. Medium
Reply to this comment
I will try git and will let you know how it behaves.
For the calendar issue, you could just make sure that your user has 
set the new sync_calendars preference. The fix just defaults to the 
user's main calendar if it's not set.

07/17/2011 12:07:33 PM hordebug (at) zulan (dot) net Comment #3 Reply to this comment
This part, at least, sounds like the same issue that was recently 
fixed (Bug: 10329), are you sure you are running latest git master?
I am not running git, but Horde 4.0.7 from pear. (I could not specify 
that when creating the ticket).

I will try git and will let you know how it behaves.

Thanks
07/17/2011 12:01:14 PM Michael Rubinsky Comment #2 Reply to this comment
Horde --> Droid

No updates are sent at all. Horde does not attempt to sync newly created or
modified calendar events. The sync logs provided are after I created a new
event with kronolith.
This part, at least, sounds like the same issue that was recently 
fixed (Bug: 10329), are you sure you are running latest git master?

07/17/2011 11:53:43 AM hordebug (at) zulan (dot) net Comment #1
Priority ⇒ 3. High
State ⇒ Unconfirmed
Patch ⇒ No
Milestone ⇒
Queue ⇒ Synchronization
Summary ⇒ Sync with Android / Funambol
Type ⇒ Bug
Reply to this comment
I am trying to sync an Android Nexus S with Horde (Contacts and Calendar for
now).

Funambol Sync Version 10.0.5
I set the Server names to "contacts" and "calendar"

Horde 4.0.7
kronolith 3.0.5
turba 3.0.4
(all installed yesterday using pear on a Debian squeeze)

Full sync logs are at http://zulan.net/sync.tar.gz

Contacts:

Basically both directions are working, but some values are missing

Horde --> Droid

Location: OK
Email: Ok
Home Phone: MISSING!
Work Phone: MISSING!
Mobile Phone: OK
Fax : OK
Photo: Not OK, missing image driver

Droid --> Horde

Location: OK
Email: MISSING!
Home Phone: OK
Work Phone: OK
Mobile Phone: OK
Other Phone: Missing

Excerpt from data.txt

Input received from client (text/x-vcard):
BEGIN:VCARD
VERSION:2.1
TEL;VOICE:3333   --> Horde does not use
EMAIL;INTERNET;HOME:mobilr@example.com --> Horde Does not use
END:VCARD

In the other way, the backend data does not contain Home / Work Phone!

Calendar:

Droid --> Horde

Seems to work reasonably

Horde --> Droid

No updates are sent at all. Horde does not attempt to sync newly created or
modified calendar events. The sync logs provided are after I created a new
event with kronolith.

Saved Queries