Results 1 to 4 of 4

Thread: ParseException trying to import .ics

  1. #1
    shideg is offline Intermediate Member
    Join Date
    Oct 2006
    Posts
    19
    Rep Power
    8

    Default ParseException trying to import .ics

    Hello, I'm trying to import ics files, and I'm attempting a little experiment. I issued the following command to export a calendar from zimbra:

    Code:
    curl http://zimbraold.saintmarys.edu/zimbra/user/hideg/calendar > test.ics
    Then I try to re-import the calendar with this command:

    Code:
    curl -u hideg:<passwd> --data-binary ./test.ics http://zimbraold.saintmarys.edu/zimbra/user/hideg/calendar?fmt=ics
    as shown on the Wiki's User Migration page.

    When I do this, I get the following exception:

    javax.servlet.ServletException: parse error: Caught ParseException parsing calendar: net.fortuna.ical4j.data.ParserException: Expected [BEGIN], read [./test.ics] at line 1
    ./test.ics

    It seems as though zimbra can't even import its own exported calendars.

    Has anybody encountered this error? Any ideas how to avoid this problem?
    Is this a known bug? etc.

    Thanks.

    --Steve Hideg
    Saint Mary's College, Notre Dame, IN

  2. #2
    dkarp is offline Zimbra Employee
    Join Date
    Aug 2005
    Posts
    1,433
    Rep Power
    12

    Default

    Quote Originally Posted by shideg
    curl -u hideg:<passwd> --data-binary ./test.ics http://zimbraold.saintmarys.edu/zimb...lendar?fmt=ics
    I think you need a leading @ on your filename.
    If you start the data with the letter @, the rest should be a file name to read the data from, or - if you want curl to read the data from stdin. The contents of the file must already be url-encoded. Multiple files can also be specified. Posting data from a file named 'foobar' would thus be done with --data @foobar".
    Bugzilla - Wiki - Downloads - Before posting... Search!

  3. #3
    shideg is offline Intermediate Member
    Join Date
    Oct 2006
    Posts
    19
    Rep Power
    8

    Default

    Quote Originally Posted by dkarp
    I think you need a leading @ on your filename.
    Thanks!

    I glossed right over the @ character on the Wiki page.
    Sometimes user errors are the easy ones to fix.

    Thanks for the help.

    --Steve

  4. #4
    padraig's Avatar
    padraig is offline Elite Member
    Join Date
    Jul 2006
    Location
    ireland
    Posts
    388
    Rep Power
    9

    Default

    this solved my Zimbra import .ics file Parse Error
    Not allowed to import to root folder for this type
    Thanks For any replies,
    p.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 1
    Last Post: 07-27-2007, 12:19 PM
  2. Replies: 0
    Last Post: 06-21-2007, 02:33 PM
  3. Please Skip Calendar in Import Wizard
    By ThorGoLucky in forum Migration
    Replies: 3
    Last Post: 02-15-2007, 08:51 PM
  4. import wizard doesn't import recurring events?
    By spot in forum Administrators
    Replies: 0
    Last Post: 12-18-2006, 03:20 AM
  5. Error using the PST Import Wizard
    By yogel in forum Zimbra Connector for Outlook
    Replies: 8
    Last Post: 04-25-2006, 06:32 PM

Posting Permissions

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