Results 1 to 5 of 5

Thread: using curl to post ical calendars

  1. #1
    rdavison is offline Starter Member
    Join Date
    Jan 2007
    Location
    London
    Posts
    2
    Rep Power
    8

    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.

  2. #2
    jhahm is offline Zimbra Employee
    Join Date
    Sep 2005
    Posts
    57
    Rep Power
    9

    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!

  3. #3
    rdavison is offline Starter Member
    Join Date
    Jan 2007
    Location
    London
    Posts
    2
    Rep Power
    8

    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

  4. #4
    Klug's Avatar
    Klug is offline Moderator
    Join Date
    Mar 2006
    Location
    Beaucaire, France
    Posts
    2,322
    Rep Power
    13

    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 07:26 AM.

  5. #5
    jhahm is offline Zimbra Employee
    Join Date
    Sep 2005
    Posts
    57
    Rep Power
    9

    Default

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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. .53 Will Not "Launch" in FF 2.0.0.6
    By jhoelz in forum Installation Help
    Replies: 4
    Last Post: 08-04-2007, 09:01 PM
  2. outlook and multiple calendars
    By bnz in forum Users
    Replies: 6
    Last Post: 11-07-2006, 09:48 AM
  3. iCal sync failing with shared calendars
    By travisbell in forum CalDAV / CardDAV / iSync
    Replies: 10
    Last Post: 10-19-2006, 08:21 PM
  4. Replies: 5
    Last Post: 08-11-2006, 12:35 PM
  5. iCal & Delegate Calendars
    By tbridge in forum Administrators
    Replies: 1
    Last Post: 07-03-2006, 12:57 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •