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 11-21-2006, 02:39 PM
Intermediate Member
 
Posts: 19
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
Reply With Quote
  #2 (permalink)  
Old 11-21-2006, 02:54 PM
Zimbra Employee
 
Posts: 1,434
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!
Reply With Quote
  #3 (permalink)  
Old 11-22-2006, 07:32 AM
Intermediate Member
 
Posts: 19
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
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.