Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Migration

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-24-2007, 11:47 AM
Starter Member
 
Posts: 2
Default using curl to post ical calendars

Hi all,

I'm a little new to all of this, but have so far managed to get Zimbra up and running and my company is very impressed with the features!

I've tried some calendar migration with some users, and it seems ok for two of them, but when trying myself I run:

curl -u rdavison:mypassword --data-binary @/opt/zimbra/calendar_migrate/rdavison.ics http://zimbratest/zimbra/home/rdavison/calendar?fmt=ics

and get:

HTTP Status 500 - </h1><HR size="1" noshade="noshade"><p><b>type</b> Exception report</p><p><b>message</b> <u></u></p><p><b>description</b> <u>The server encountered an internal error () that prevented it from fulfilling this request.</u></p><p><b>exception</b> <pre>java.lang.NullPointerException
com.zimbra.cs.mailbox.calendar.ParsedDateTime.add( ParsedDateTime.java:263)
com.zimbra.cs.mailbox.calendar.Recurrence$SimpleRe peatingRule.getEndTime(Recurrence.java:706)
com.zimbra.cs.mailbox.calendar.Recurrence$MultiRul eSorter.getEndTime(Recurrence.java:342)
com.zimbra.cs.mailbox.calendar.Recurrence$Compound RuleBase.getEndTime(Recurrence.java:932)
com.zimbra.cs.mailbox.CalendarItem.create(Calendar Item.java:164)
com.zimbra.cs.mailbox.Mailbox.createCalendarItem(M ailbox.java:4142)
com.zimbra.cs.mailbox.Mailbox.addInvite(Mailbox.ja va:3015)
com.zimbra.cs.service.formatter.IcsFormatter.saveC allback(IcsFormatter.java:134)
com.zimbra.cs.service.formatter.Formatter$SaveOper ation.callback(Formatter.java:273)
com.zimbra.cs.operation.Operation.schedule(Operati on.java:190)
com.zimbra.cs.service.formatter.Formatter.save(For matter.java:103)
com.zimbra.cs.service.UserServlet.doPost(UserServl et.java:438)
javax.servlet.http.HttpServlet.service(HttpServlet .java:709)
com.zimbra.cs.servlet.ZimbraServlet.service(Zimbra Servlet.java:162)
javax.servlet.http.HttpServlet.service(HttpServlet .java:802)
com.zimbra.webClient.filters.SetHeaderFilter.doFil ter(SetHeaderFilter.java:288)

It seems to import calendar entries up until a point. The first one it can't manage is:

BEGIN:VEVENT
UID:HTTPS:-MYCOMPANY-COM-WEBCALENDAR-RDAVISON-0000012782
SUMMARY:Holiday
DESCRIPTION:Holiday
CLASS:PUBLIC
STATUS:CONFIRMED
DTSTART;VALUE=DATETIME:20060904T000000
DTSTAMP:20070124T184351Z
RRULE:FREQ=DAILY;BYDAY=MO,TU,WE,TH,FR;UNTIL=200609 15T230000Z
END:VEVENT

I've exported my original calendar in ical format. Does Zimbra not agree with one of the recurrance rules, or am I doing something obviously wrong??

thanks for any help in advance.
Reply With Quote
  #2 (permalink)  
Old 01-24-2007, 12:17 PM
Zimbra Employee
 
Posts: 57
Default

Hi, the NullPointerException is due to a missing null check in the server. That's a bug.

However, your .ics is invalid. It has neither DTEND nor DURATION. One or the other is required according to RFC2445. Even if server is fixed to do the null check properly, your meeting will be treated as having no duration and probably won't show up in the calendar view. Is it possible to fix the source system to regenerate the .ics, then re-import into ZCS?
__________________
Bugzilla - Wiki - Downloads - Before posting... Search!
Reply With Quote
  #3 (permalink)  
Old 01-25-2007, 04:07 AM
Starter Member
 
Posts: 2
Default

Thanks for your prompt reply. We use the open source 'webcalendar' so I'll see if there are any known issues with that.

Thanks
Reply With Quote
  #4 (permalink)  
Old 01-25-2007, 06:15 AM
Moderator
 
Posts: 2,207
Default Same issue with export from GroupOffice

Hello.

Just tried the same with an iCal export from GroupOffice :
Code:
$ curl -u sylvain@network-studio.com --data-binary @./david.ics http://localhost/service/home/sylvain@network-studio.com/calendar?fmt=ics
Enter host password for user 'sylvain@network-studio.com':
<html><head><title>Apache Tomcat/5.5.15 - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 500 - </h1><HR size="1" noshade="noshade"><p><b>type</b> Exception report</p><p><b>message</b> <u></u></p><p><b>description</b> <u>The server encountered an internal error () that prevented it from fulfilling this request.</u></p><p><b>exception</b> <pre>javax.servlet.ServletException: parse error: Caught ParseException parsing calendar: net.fortuna.ical4j.data.ParserException: Expected [61], read [58] at line 29
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//Intermesh//NONSGML Group-Office//EN
CALSCALE:GREGORIAN
METHOD:PUBLISH
BEGIN:VTIMEZONE
TZID:Fran&amp;ccedil;ais
BEGIN:DAYLIGHT
DTSTART:19700329T030000
TZOFFSETTO:+0200
TZOFFSETFROM:+0100
TZNAME:GMT+0200
RRULE:FREQ=YEARLY;INTERVAL=1;BYDAY=-1SU;BYMONTH=3
END:DAYLIGHT
BEGIN:STANDARD
TZOFFSETTO:+0100
TZOFFSETFROM:+0200
TZNAME:GMT+0100
DTSTART:19701025T040000
RRULE:FREQ=YEARLY;INTERVAL=1;BYDAY=-1SU;BYMONTH=10
END:STANDARD
END:VTIMEZONE
BEGIN:VEVENT
UID:1888
SUMMARY:testt
DESCRIPTION:test
STATUS:CONFIRMED
CLASS:PUBLIC
DTSTART;TZID=Fran&amp;ccedil;ais:20070125T140000
DTEND;TZID=Fran&amp;ccedil;ais:20070125T180000
DTSTAMP:20070125T140719
X-GO-BGCOLOR:FFFFCC
END:VEVENT
END:VCALENDAR

        com.zimbra.cs.service.UserServlet.doPost(UserServlet.java:445)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
        com.zimbra.cs.servlet.ZimbraServlet.service(ZimbraServlet.java:162)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
</pre></p><p><b>root cause</b> <pre>com.zimbra.common.service.ServiceException: parse error: Caught ParseException parsing calendar: net.fortuna.ical4j.data.ParserException: Expected [61], read [58] at line 29
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//Intermesh//NONSGML Group-Office//EN
CALSCALE:GREGORIAN
METHOD:PUBLISH
BEGIN:VTIMEZONE
TZID:Fran&amp;ccedil;ais
BEGIN:DAYLIGHT
DTSTART:19700329T030000
TZOFFSETTO:+0200
TZOFFSETFROM:+0100
TZNAME:GMT+0200
RRULE:FREQ=YEARLY;INTERVAL=1;BYDAY=-1SU;BYMONTH=3
END:DAYLIGHT
BEGIN:STANDARD
TZOFFSETTO:+0100
TZOFFSETFROM:+0200
TZNAME:GMT+0100
DTSTART:19701025T040000
RRULE:FREQ=YEARLY;INTERVAL=1;BYDAY=-1SU;BYMONTH=10
END:STANDARD
END:VTIMEZONE
BEGIN:VEVENT
UID:1888
SUMMARY:testt
DESCRIPTION:test
STATUS:CONFIRMED
CLASS:PUBLIC
DTSTART;TZID=Fran&amp;ccedil;ais:20070125T140000
DTEND;TZID=Fran&amp;ccedil;ais:20070125T180000
DTSTAMP:20070125T140719
X-GO-BGCOLOR:FFFFCC
END:VEVENT
END:VCALENDAR

        com.zimbra.common.service.ServiceException.PARSE_ERROR(ServiceException.java:193)
        com.zimbra.cs.mailbox.calendar.ZCalendar$ZCalendarBuilder.build(ZCalendar.java:904)
        com.zimbra.cs.service.formatter.IcsFormatter.saveCallback(IcsFormatter.java:127)
        com.zimbra.cs.service.formatter.Formatter$SaveOperation.callback(Formatter.java:273)
        com.zimbra.cs.operation.Operation.schedule(Operation.java:190)
        com.zimbra.cs.service.formatter.Formatter.save(Formatter.java:103)
        com.zimbra.cs.service.UserServlet.doPost(UserServlet.java:438)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
        com.zimbra.cs.servlet.ZimbraServlet.service(ZimbraServlet.java:162)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
</pre></p><p><b>note</b> <u>The full stack trace of the root cause is available in the Apache Tomcat/5.5.15 logs.</u></p><HR size="1" noshade="noshade"><h3>Apache Tomcat/5.5.15</h3></body></html>
Line 29 is
Code:
DTSTART;TZID=Fran&amp;ccedil;ais:20070125T140000
I suppose the TZID is wrong ?

Edit a couple of minutes later
I modified the .ics file manually and put CET as TZID (in lines 7 and 29) and it works flawlessly.

Looks like a GroupOffice bug (double encoding the "ç").

Last edited by Klug; 01-25-2007 at 06:26 AM..
Reply With Quote
  #5 (permalink)  
Old 01-25-2007, 12:37 PM
Zimbra Employee
 
Posts: 57
Default

That's correct, the TZID was wrong. A TZID value cannot contain double-quote, ";", ":", or ",".
__________________
Bugzilla - Wiki - Downloads - Before posting... Search!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.