google-code-export / webical

Automatically exported from code.google.com/p/webical
GNU General Public License v3.0
1 stars 1 forks source link

Webical chokes on multiple entries in an ical4j Component #72

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The current setup I have:
 - Calendar server: Apple Calendar Service (see http://www.apple.com/server/macosx/features/ical.html)
 - Webical
 - Apple iCal (http://www.apple.com/ical/)

Whenever I create an event in Webical, I can read it with iCal. No issue there.
When I create an event in iCal, I *cannot* read it with Webical.

After debugging I found the problem. iCal includes the timezone (VTimeZone) as 
first item in 
every new event it creates. This results in an ical4j Component having a 
VTimeZone and a 
VEvent. As the caldav plugin only reads the first entry of a Component, webical 
does not display 
items created from iCal.

I added two patches, one for the plugin and one for webical-core. My patch 
simply ignores the 
TimeZone. It probably should convert it to the TimeZone of the users calendar, 
but I'm not sure. 
If you can look at these and probably include them in SVN, then Webical works 
with the Apple 
Calendar service as backend.

Keep up the good work! If you have any questions, you know where to find me :-)

Original issue reported on code.google.com by d...@zorginitiatieven.nl on 18 Feb 2008 at 8:53

Attachments:

GoogleCodeExporter commented 9 years ago
This is an example .ics entry from iCal:

VERSION:2.0
CALSCALE:GREGORIAN
PRODID:-//Apple Inc.//iCal 3.0//EN
BEGIN:VTIMEZONE
TZID:Europe/Amsterdam
BEGIN:STANDARD
DTSTART:19961027T030000
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU
TZNAME:CET
TZOFFSETFROM:+0200
TZOFFSETTO:+0100
END:STANDARD
BEGIN:DAYLIGHT
DTSTART:19810329T020000
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU
TZNAME:CEST
TZOFFSETFROM:+0100
TZOFFSETTO:+0200
END:DAYLIGHT
END:VTIMEZONE
BEGIN:VEVENT
UID:2003D2B5-4F83-45FF-BB33-0E348614D13B
DTSTART;TZID=Europe/Amsterdam:20080228T140000
DTEND;TZID=Europe/Amsterdam:20080228T150000
CREATED:20080218T121654Z
DTSTAMP:20080218T121659Z
SEQUENCE:2
SUMMARY:test event
TRANSP:OPAQUE
END:VEVENT
END:VCALENDAR

Original comment by d...@zorginitiatieven.nl on 18 Feb 2008 at 8:57

GoogleCodeExporter commented 9 years ago
Thanks for the patch. I ran into this myself this weekend when trying to figure 
out
why the caldav plugin wouldn't communicate with the chandler projects open hub. 
I
didn't commit it yet as I hadn't had the chance to test it properly. I did now, 
so if
you want you can check it out and build it for yourself. Please let me know if 
it
works. I'll figure out what to do with the timezones later on when I have some 
more
time. 

BTW. if you're interested in helping out some more, you are more than welcome. 
ATM
I'm really stressed for time and would love some input.

Original comment by ivovando...@gmail.com on 18 Feb 2008 at 9:10

GoogleCodeExporter commented 9 years ago
Consider yourself the first outside submitter of a Webical patch! Thank you :)

Original comment by zorre...@gmail.com on 19 Feb 2008 at 7:52

GoogleCodeExporter commented 9 years ago
I feel honored :-)

@Ivo: which revision contains your patch? Is it both in the plugin and in 
webical?

Original comment by d...@zorginitiatieven.nl on 19 Feb 2008 at 9:07

GoogleCodeExporter commented 9 years ago
It's on the current trunk of the plugin, I didn't commit anything else since 
then.
The patch doesn't involve webical-core, so you don't need to build that for 
yourself.
Before building the plugin make sure the webical version is set correctly in the
plugin's pom (<webical-version>0.4-SNAPSHOT</webical-version>). This must match 
the
version of webical set in webical's pom. For the 0.4 release this is correct 
(the
release was not properly done :(), for the current trunk version of webical it 
must
be set to 0.5-SNAPSHOT.

Original comment by ivovando...@gmail.com on 19 Feb 2008 at 9:17

GoogleCodeExporter commented 9 years ago
I think this problem is solved in the current trunk (0.5-SNAPSHOT). Can anybody
verify this?

Original comment by ivovando...@gmail.com on 24 Feb 2008 at 6:01