View Issue Details

IDProjectCategoryView StatusLast Update
0001775Funambol SOGo ConnectorBackend Calendarpublic2021-09-17 20:11
Reporterpepelton Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionwon't fix 
Summary0001775: Full day events synced from Outlook and imported from K5N webcalendar show on wrong day
Description

If I create an all day event in Outlook 2010 and then use Funambol to
sync it to SOGo, the day is shown on wrong day: if the event is for
the 19th of April, SOGo will show it for 18th in its calendar view,
but if I double click it, the information displayed is shown
correctly:

x All day event
Start: 2012-04-19 00:00
End: 2012-04-19 00:00

If I now save the event (without modifying anything) it will put the
event in right place.

Importing full day events exported from K5N Webcalendar software behave the same way, except that with these events SOGo reports that the event start date is before the end date if I try to open the event by double clicking it. I have attached the file webcalendar-fullday.ics I've used for testing.

Additional Information

I can reproduce the K5N Webcalendar behaviour with http://sogo-demo.inverse.ca/SOGo and a system running the latest nightly packages (sogo-2.0_20120418-1.centos6.i686)

The Outlook 2010 sync behaviour was noticed and reproduced with a system running the following software versions:

[root@sogo ~]# rpm -qa |grep sogo
sogo-tool-1.3.12c-1.centos6.i686
sogo-1.3.12c-1.centos6.i686
sogo-ealarms-notify-1.3.12c-1.centos6.i686

[root@sogo ~]# rpm -qa |grep sope
sope49-appserver-4.9-20120214_1664.el6.1.i686
sope49-sbjson-2.3.1-20120214_1664.el6.1.i686
sope49-xml-4.9-20120214_1664.el6.1.i686
sope49-gdl1-contentstore-1.3.12c-1.centos6.i686
sope49-cards-1.3.12c-1.centos6.i686
sope49-gdl1-postgresql-4.9-20120214_1664.el6.1.i686
sope49-gdl1-4.9-20120214_1664.el6.1.i686
sope49-ldap-4.9-20120214_1664.el6.1.i686
sope49-gdl1-mysql-4.9-20120214_1664.el6.1.i686
sope49-core-4.9-20120214_1664.el6.1.i686
sope49-mime-4.9-20120214_1664.el6.1.i686

funambol-8.5.2
funambol-sogo-1.0.8.s4j

Timezone in use: Europe/Helsinki

TagsNo tags attached.

Relationships

duplicate of 0001055 closedludovic SOGo Day events imported from .ics file are displayed on previous day 

Activities

2012-04-19 12:18

 

webcalendar-fullday.ics (505 bytes)   
BEGIN:VCALENDAR
X-WR-CALNAME;VALUE=TEXT:test
PRODID:-//WebCalendar-ics-v1.2.3
VERSION:2.0
METHOD:PUBLISH
BEGIN:VEVENT
UID:HTTPS:-WWW-TEST-COM-WEBCALENDAR-TEST-0000006674
LAST-MODIFIED:20120419T114221Z
SUMMARY:full day event
DESCRIPTION:full day event created in webcalendar
CLASS:PUBLIC
STATUS:CONFIRMED
ATTENDEE;ROLE=CHAIR;PARTSTAT=ACCEPTED;CN="Test
  Tester":MAILTO:test@test.com
DTSTART;VALUE=DATE:20120420
DTSTAMP:20120419T114342Z
DTEND;VALUE=DATE:20120420
END:VEVENT
END:VCALENDAR
webcalendar-fullday.ics (505 bytes)   
Christian Mack

Christian Mack

2012-04-20 07:29

developer   ~0003791

Last edited: 2012-04-20 07:29

Your event violates the standard.
The start and end dates are equal.

DTSTART;VALUE=DATE:20120420
DTEND;VALUE=DATE:20120420

End must always be later than start.

See bug 0001055 for a fix.
Can you please try it?

pepelton

pepelton

2012-04-20 07:41

reporter   ~0003792

Thank you for your reply. I think Outlook violates the standard then, and there is not much I can do about that :)

About the propposed fix: is there a compiled RPM for CentOS6 with the fix somewhere that I can try to install? I have no experience on compiling SOGo myself: if I need to do that, I would appreciate instructions how to proceed.

Christian Mack

Christian Mack

2012-04-20 07:50

developer   ~0003793

This should be in the nightlies.
http://www.sogo.nu/downloads/backend_nightly.html

pepelton

pepelton

2012-04-20 11:59

reporter   ~0003796

Thank you for your feedback.

I yum updated my dev system to the latest nightly packages:

rpm -qa |grep sogo

sogo-2.0_20120419-1.centos6.i686
sogo-ealarms-notify-2.0_20120419-1.centos6.i686
sogo-tool-2.0_20120419-1.centos6.i686

rpm -qa |grep sope

sope49-appserver-4.9-20120414_1664.el6.1.i686
sope49-xml-4.9-20120414_1664.el6.1.i686
sope49-gdl1-mysql-4.9-20120414_1664.el6.1.i686
sope49-gdl1-postgresql-4.9-20120414_1664.el6.1.i686
sope49-sbjson-2.3.1-20120414_1664.el6.1.i686
sope49-gdl1-contentstore-2.0_20120419-1.centos6.i686
sope49-gdl1-4.9-20120414_1664.el6.1.i686
sope49-ldap-4.9-20120414_1664.el6.1.i686
sope49-cards-2.0_20120419-1.centos6.i686
sope49-core-4.9-20120414_1664.el6.1.i686
sope49-mime-4.9-20120414_1664.el6.1.i686

I restarted memcached+sogod, removed the calendar with sogo-tool and imported the attached webcalendar-fullday.ics again.

This did not resolve the problem. The event is still marked on the 19th when it should be marked on the 20th. Sogo also complains about the end date being before the start date if I double click the event.

If one creates a full day event in Outlook 2010, one cannot change the time for the event: it always begins and ends at the same time (12 AM). Although against the standard, IMHO it would be user friendly to support such events? And at least for me it would make sense that if an event is a full day event, then the calendar should be only considered about the day the event is occurring (and pay no attention to the time).

ludovic

ludovic

2012-04-20 12:02

administrator   ~0003797

The fix is in the 20120420 builds.

The fix will only work for events that are imported from SOGo's Web GUI, not if you do a DAV PUT.

pepelton

pepelton

2012-04-21 18:20

reporter   ~0003803

I can confirm that yum updating to 20120420 build fixed the problem when importing the full day event from ics.

But like ludovic commented, it does not fix the problem when syncing from Outlook with Funambol:

  • Event marked as a full day event for 21st of April and synced from Outlook is listed starting on the 20th and ending on the 21st

  • The event does not show at all in the actual calendar area (only in the event list)

  • If double clicked from the event list, the event information is shown as follows:

x All day event
Start: 2012-04-21 00:00
End: 2012-04-21 00:00

  • If I now click "Save and Close" the event appears in the the calendar area and is now shown correctly on the 21st and in the event list it is reported starting on the 21st and ending on the 21st

Can you fix this behaviour as well? Thanks!

pepelton

pepelton

2012-05-21 11:41

reporter   ~0003930

I just upgraded to 1.3.15a and there was no change: full day events synced from Outlook with Funambol are shown in the SOGo web UI on the wrong day.

Are there any plans fixing this or should I start looking for Funambol replacement for Outlook users?

2012-12-13 19:30

 

modified-files.zip (21,507 bytes)
tfu

tfu

2012-12-13 19:31

reporter   ~0005069

Last edited: 2012-12-13 19:32

To fix the issue for all day events synced form Outlook with Funambol requires the value for c_startdate and c_enddate inserted into the *quick table.

e.g.
// tfu 0001775 / sogo allday events on wrong day
s.setLong(3, event.isAllDay() ? s_date + 3600 : s_date); // c_startdate
s.setLong(4, event.isAllDay() ? e_date + 86399 : e_date ); // c_endate

I attached following files to the bug containg some hacks which should fix following problemes related to events and their reminders:

ca/inverse/sogo/engine/source/CalendarData.class
-> Convert DATE/DATE-TIME trigger to DURATION trigger (the fix is actually just a cut'n'past of parts of MozillaSyncClientout.bsh)
-> reminder are not shown in sogo-web when synced via funambol (c_nextalarm)

ca/inverse/sogo/engine/source/SOGoEventUtilities.class
-> fix for some issue with all day events
-> fix issue were allday events are shown on wrong day
-> Convert DATE/DATE-TIME trigger to DURATION trigger

ca/inverse/sogo/engine/source/SOGoUtilities.class
-> fix for some issue with all day events

I call them hacks because I've not enough programming experience to write clean java code but maybe someone can make use of my findings and can create proper fixes for the mentioned problems.

francis

francis

2021-09-17 20:11

administrator   ~0015471

Funambol is no longer supported.

Issue History

Date Modified Username Field Change
2012-04-19 12:18 pepelton New Issue
2012-04-19 12:18 pepelton File Added: webcalendar-fullday.ics
2012-04-20 07:26 Christian Mack Relationship added duplicate of 0001055
2012-04-20 07:29 Christian Mack Note Added: 0003791
2012-04-20 07:29 Christian Mack Note Edited: 0003791
2012-04-20 07:29 Christian Mack Note Edited: 0003791
2012-04-20 07:41 pepelton Note Added: 0003792
2012-04-20 07:50 Christian Mack Note Added: 0003793
2012-04-20 11:59 pepelton Note Added: 0003796
2012-04-20 12:02 ludovic Note Added: 0003797
2012-04-21 18:20 pepelton Note Added: 0003803
2012-05-21 11:41 pepelton Note Added: 0003930
2012-10-21 00:24 wsourdeau Project SOGo => Funambol SOGo Connector
2012-12-13 19:30 tfu File Added: modified-files.zip
2012-12-13 19:31 tfu Note Added: 0005069
2012-12-13 19:32 tfu Note Edited: 0005069
2021-09-17 20:11 francis Status new => closed
2021-09-17 20:11 francis Resolution open => won't fix
2021-09-17 20:11 francis Note Added: 0015471