6.0.0-beta1
7/19/25

[#9303] Recurrent "All year" Event's dont sync correctly with Funambol
Summary Recurrent "All year" Event's dont sync correctly with Funambol
Queue Synchronization
Type Bug
State Resolved
Priority 2. Medium
Owners jan (at) horde (dot) org
Requester david (at) infiltrator (dot) nl
Created 10/12/2010 (5394 days ago)
Due
Updated 10/15/2010 (5391 days ago)
Assigned
Resolved 10/13/2010 (5393 days ago)
Github Issue Link
Github Pull Request
Milestone 3.3.10
Patch No

History
10/15/2010 09:42:50 AM lst_hoe02 (at) kwsoft (dot) de Comment #15 Reply to this comment
FYI: The Outlook 2007 security update KB2288953 introduced the change 
which causes all Funambol versions to fail at yearly events. 
Unfortunately roll-back this update is not enough but one has to 
replace "outlook.exe" with a version from a system which never has 
installed this update.

10/13/2010 02:59:41 PM david (at) infiltrator (dot) nl Comment #14 Reply to this comment
By the way, Miguel told me...
I'm talking about the Miguel which reported 
"http://bugs.horde.org/ticket/8884"
10/13/2010 02:58:24 PM david (at) infiltrator (dot) nl Comment #13 Reply to this comment
By the way, Miguel told me that Jan himself placed a reply on the 
Funambol forum which covers this issue 
https://core.forge.funambol.org/ds/viewMessage.do?orderBy=createDate&currentPage=1&countPerPage=25&dsForumId=405&dsMessageId=128389

Failing to sync annual events seems a Funambol problem instead of 
Horde's SyncML!?
10/13/2010 02:55:44 PM david (at) infiltrator (dot) nl Comment #12 Reply to this comment
That's the git development version, not the stable CVS version.
Okay, I used the instructions on "http://www.horde.org/source/cvs.php
to checkout the 'framework' module. Here I replaced Sync4j.php with 
".../framework/SyncML/SyncML/Device/Sync4j.php". Still no sync by 
Funambol (same error). Now this appears in the apache logfile:

PHP Fatal error:  Class 'Horde_String' not found in 
.../horde/lib/SyncML/Device/Sync4j.php on line 928

Guess I need to update more files, but don't know where to start....
10/13/2010 02:53:55 PM lst_hoe02 (at) kwsoft (dot) de Comment #11 Reply to this comment
As said the snapshot from last night don't fix it either. I can see in 
the debug output in /tmp/sync/data.txt that the "Interval" is not in 
the SIF-E data with the snapshot version, but it seems as it is later 
added again in the code chain because Funambol complain further on 
with the same error. As far as i remember there will be some 
additionally parsing of the data before they get send, but i don't 
remember which module was involved :-(
10/13/2010 02:28:43 PM Jan Schneider Comment #10 Reply to this comment
That's the git development version, not the stable CVS version.

Please use the mailing list to ask for support.

http://www.horde.org/mail/ contains a list of all available mailing lists.
10/13/2010 11:58:55 AM david (at) infiltrator (dot) nl Comment #9 Reply to this comment
If have tried Sync4j.php from tonight snapshot but this one does not work...
Are there any other files involved or is the fix only included tomorrow?
I just replaced

.../horde/lib/SyncML/Device/Sync4j.php

with

http://git.horde.org/horde-git/-/browse/framework/SyncML/SyncML/Device/Sync4j.php

and I get the following error in the Apache log after syncing a Horde 
calendar with birthdays to an empty Outlook client (with Funambol):

PHP Warning:  require_once(Horde/Icalendar.php) [<a 
href='function.require-once'>function.require-once</a>]: failed to 
open stream: No such file or directory in 
.../horde/lib/SyncML/Device/Sync4j.php on line 10
PHP Fatal error:  require_once() [<a 
href='function.require'>function.require</a>]: Failed opening required 
'Horde/Icalendar.php' 
(include_path='.../horde/lib:.../horde/lib/../pear/php') in 
.../horde/lib/SyncML/Device/Sync4j.php on line 10

Funambol didn't anything this time and the logfile reports:

Last error message = "Server Failure: server returned error code -1"
Last error code    = -1

What do I have to do to make this work?

(I downloaded revision "1526c4e2f0121646bf75285f8b25fdb3865aa60c" of 
'Sync4j.php')
10/13/2010 11:25:01 AM lst_hoe02 (at) kwsoft (dot) de Comment #8 Reply to this comment
If have tried Sync4j.php from tonight snapshot but this one does not work...
Are there any other files involved or is the fix only included tomorrow?

10/13/2010 10:48:52 AM Jan Schneider Comment #7 Reply to this comment
cvs.horde.org is broken for the CVS repository at the moment, so no. 
But you can grab the latest SyncML/Device/Sync4j.php from 
CVS/snapshots manually.
10/13/2010 10:43:35 AM lst_hoe02 (at) kwsoft (dot) de Comment #6 Reply to this comment
Thanks!

Link to the patch available? We have to resync some calendar with many 
birthdays pending :-(
10/13/2010 10:40:25 AM Jan Schneider Comment #5
Milestone ⇒ 3.3.10
Priority ⇒ 2. Medium
State ⇒ Resolved
Assigned to Jan Schneider
Reply to this comment
This has been fixed in CVS already.
10/13/2010 09:29:52 AM lst_hoe02 (at) kwsoft (dot) de Comment #4 Reply to this comment
It seems that Horde always send "Interval" as part of the recurence, 
which is not supportet for Yearly/YearNth in the SIF-E Outlook world 
(it is always "1"). Therfore the Funambol Clients for Outlook complain 
about "Error inserting recurrence property 'Interval' into Outlook" 
and skip the yearly recuring entries like birthdays. I have tried to 
disable "Interval" for the yearly cases in Sync4j.php but it added 
later on again :-(
10/13/2010 07:14:17 AM david (at) infiltrator (dot) nl Comment #3 Reply to this comment
Stumpled across this also today. Will see what have changed because 
i'm pretty sure it worked with Horde 3.3.6.
Good to know I'm not the only one :-)
I haven't tested with other versions of Groupware Webmail Edition. Any 
idea which version does contain the Horde 3.3.6? Would hurt just to 
try it.
10/12/2010 07:38:33 PM lst_hoe02 (at) kwsoft (dot) de Comment #2 Reply to this comment
Stumpled across this also today. Will see what have changed because 
i'm pretty sure it worked with Horde 3.3.6.
10/12/2010 10:01:19 AM david (at) infiltrator (dot) nl Comment #1
Patch ⇒ No
State ⇒ Unconfirmed
Milestone ⇒
Queue ⇒ Synchronization
Summary ⇒ Recurrent "All year" Event's dont sync correctly with Funambol
Type ⇒ Bug
Priority ⇒ 3. High
Reply to this comment
I run Horde Groupware Webmail Edition 1.2.7 on my own server (PHP 
version 5.1.6). Simple installation, no tweaks! I use "Funambol 
Outlook Sync Client 8.7.2" to connect my Outlook client to horde.

When I add a birthday in Outlook (which is a yearly recurrent event) 
and I synch this trough "rpc.php", then it appears in de calendar of 
Horde. Now when I synch the calendatevent on Horde to another PC (with 
an 'empty' Outlook). the birthday isn't synched back! Logfile of 
Funambol:

Sync completed - WARNING: some items have not been inserted on Outlook.
Last error = "Error setting properties of appointment item "xxxxxx's 
Birthday". Item not saved." (code 105)

In the apache log I see the following errors:

PHP Warning:  date() expects parameter 2 to be long, array given in 
/var/www/html/horde/lib/SyncML/Device/Sync4j.php on line 1028
PHP Warning:  date() expects parameter 2 to be long, array given in 
/var/www/html/horde/lib/SyncML/Device/Sync4j.php on line 1030

I checked out the Horde code and found the following codelines:

line 1028 => $hash['DayOfMonth'] = date('j', $start);
line 1030 => $hash['MonthOfYear'] = date('n', $start);

I have debugged the value of '$start' while syncing again with the 
other PC. It appears that '$start' is an array like the one below:

array('mday' => '21', 'year' => '1976', 'month' => '05')

The date function doesn't accept this as value, therefore synching 
recurrent yearly events fails... I've tested with daily, weekly and 
monthly recurrent events, but that works just fine!

If this issue is not reproducable, I can provide with more info if necessary.

PS: this ticket is created along ticket #8884 (Recurrent "All day" 
Event's dont sync with Funambol).

Saved Queries