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 10-02-2008, 04:52 PM
Senior Member
 
Posts: 53
Default Admin can't import tasks to user accounts?

I'm in the process of converting and migrating user data from our Oracle Calendar system, and one of the things we'll need to convert are To-Do lists (i.e., tasks.) I'm having trouble pushing the task ICS files into zimbra via the REST interface as the admin user. Using the individual user credentials seems to work, but is impractical for large-scale migrations (550+ users).

I'm using the following command to push the data to Zimbra:

Code:
curl -u admin@mydomain.tld --data-binary @username_tasklist.ics 'https://zimbraserver.mydomain.tld/service/home/username/tasks?fmt=ics'
This is taken from the User Migration page on the Zimbra Wiki.

It works fine if I use the user's credentials, but admin gets a HTTP 403.

It works fine for pushing actual calendars, like:

Code:
curl -u admin@mydomain.tld --data-binary @username_calendar.ics 'https://zimbraserver.mydomain.tld/service/home/username/calendar?fmt=ics'
Have I run into a bug?

The error message returned to me is:

Quote:
HTTP ERROR: 403

permission denied: you do not have sufficient permissions

RequestURI=/service/home/gruizade/tasks

Powered by Jetty://
I couldn't find anything relevant in the logs (/opt/zimbra/log), but I'm not sure what I should be looking for...
__________________
Gregory K. Ruiz-Ade
Sr. Systems Administrator
Computer Science and Engineering
University of California, San Diego
Reply With Quote
  #2 (permalink)  
Old 10-03-2008, 10:44 AM
Zimbra Employee
 
Posts: 515
Default

It's probably easier to use "zmmailbox postRestURL". Also, are you running the icalmig utility on the exports from OCS?

zmmailbox -z -m user@domain.com pru /some-tasks-folder user-export.ics
__________________
Search the Forums - Bugzilla - Wiki - Downloads
Reply With Quote
  #3 (permalink)  
Old 10-03-2008, 11:25 AM
Senior Member
 
Posts: 53
Default

Quote:
Originally Posted by bobby View Post
It's probably easier to use "zmmailbox postRestURL". Also, are you running the icalmig utility on the exports from OCS?

zmmailbox -z -m user@domain.com pru /some-tasks-folder user-export.ics
Actually, I hadn't known about icalmig. Where is this documented? The User Migration notes on the Zimbra Wiki never mentioned it.

For the most part, we've been able to simply upload ical files via the REST URLs with curl (or similar).
__________________
Gregory K. Ruiz-Ade
Sr. Systems Administrator
Computer Science and Engineering
University of California, San Diego
Reply With Quote
  #4 (permalink)  
Old 02-23-2010, 09:50 AM
Member
 
Posts: 14
Default

Hi Gregory !

I am in the same process than you 3 years ago.

My trouble is not with Zimbra (importing with zmmailbox rune fine and i don't believe that icalmig is really needed for tasks as usually there are not repetitive) but with Oracle Calendar Suite.

Except by writing a program using the SDK or asking each user to export his tasks, i have not found any easy way to retieve the tasks opf each user.

Have you any information about this topic ?
If you have written such an export tool, would you like to share it with me ?

Strangely, the OCS CLI "uniical" odes not export VTODO (tasks), only EVENTS.

Thanks in advance

Bertrand
Reply With Quote
  #5 (permalink)  
Old 02-23-2010, 10:01 AM
Member
 
Posts: 14
Default

Another question about the almost same trouble : how a zimbra user can import his/hers tasks by himself ?

The "import" page in the preferences tab of the web interface does not import tasks ! Only calendar events.

Have I missed a point ?

Thanks for any reply.

Bertrand
Reply With Quote
  #6 (permalink)  
Old 02-24-2010, 06:13 AM
Zimbra Consultant & Moderator
 
Posts: 20,317
Default

Quote:
Originally Posted by BDY35 View Post
Another question about the almost same trouble : how a zimbra user can import his/hers tasks by himself ?

The "import" page in the preferences tab of the web interface does not import tasks !
Oh yes it does. Browse to the file you wish to import, select it and then you'll see the Advanced checkbox and when you click on it you'll see the option to import tasks.Attachment 3658
Attached Images
File Type: png tasks.png (22.2 KB, 64 views)
__________________
Regards


Bill
Reply With Quote
  #7 (permalink)  
Old 05-24-2010, 07:05 AM
Junior Member
 
Posts: 5
Default

Quote:
Originally Posted by phoenix View Post
Oh yes it does. Browse to the file you wish to import, select it and then you'll see the Advanced checkbox and when you click on it you'll see the option to import tasks.Attachment 3658
Doesn't work for me. Isn't that just for exporting? Do you know what kind of files are able to be imported to tasks please?
Reply With Quote
  #8 (permalink)  
Old 05-24-2010, 07:11 AM
Zimbra Consultant & Moderator
 
Posts: 20,317
Default

Quote:
Originally Posted by rienne View Post
Doesn't work for me. Isn't that just for exporting?
No, if you look at the image above you'll see it's the Import option.

Quote:
Originally Posted by rienne View Post
Do you know what kind of files are able to be imported to tasks please?
This would be a .tzg file that you've exported from a Zimbra user.
__________________
Regards


Bill
Reply With Quote
  #9 (permalink)  
Old 05-24-2010, 07:24 AM
Junior Member
 
Posts: 5
Default Not the same as mine then

Bill many thanks for your speedy response, much appr[IMG]



Also the file I have to import is not a Zimbra file. It is either csv or from Outlook. Do you have any ideas please, many thanks

rgds
Jeff
Reply With Quote
  #10 (permalink)  
Old 05-24-2010, 07:59 AM
Zimbra Consultant & Moderator
 
Posts: 20,317
Default

The Import/Export function is to allow the user to backup and restore their own data and not import other formats. If you think that's something that should be added then you need to file an RFE in Bugzilla Main Page - Zimbra.
__________________
Regards


Bill
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.