Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Admin can't import tasks to user accounts?

  1. #1
    gkra's Avatar
    gkra is offline Senior Member
    Join Date
    May 2007
    Location
    San Diego
    Posts
    53
    Rep Power
    8

    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:

    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

  2. #2
    bobby is offline Zimbra Employee
    Join Date
    Nov 2005
    Posts
    518
    Rep Power
    10

    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

  3. #3
    gkra's Avatar
    gkra is offline Senior Member
    Join Date
    May 2007
    Location
    San Diego
    Posts
    53
    Rep Power
    8

    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

  4. #4
    BDY35 is offline Member
    Join Date
    Feb 2010
    Location
    Rennes, France
    Posts
    14
    Rep Power
    5

    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

  5. #5
    BDY35 is offline Member
    Join Date
    Feb 2010
    Location
    Rennes, France
    Posts
    14
    Rep Power
    5

    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

  6. #6
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,470
    Rep Power
    56

    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 Attached Images
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  7. #7
    rienne is offline Junior Member
    Join Date
    May 2010
    Posts
    5
    Rep Power
    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?

  8. #8
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,470
    Rep Power
    56

    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


    Acompli: A new adventure for Co-Founder KevinH.

  9. #9
    rienne is offline Junior Member
    Join Date
    May 2010
    Posts
    5
    Rep Power
    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

  10. #10
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,470
    Rep Power
    56

    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


    Acompli: A new adventure for Co-Founder KevinH.

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 21
    Last Post: 02-04-2010, 10:06 AM
  2. [SOLVED] Zimbra logwatch.
    By nishith in forum Administrators
    Replies: 5
    Last Post: 06-10-2009, 04:42 PM
  3. Post instsallation problems
    By Assaf in forum Installation
    Replies: 14
    Last Post: 01-29-2007, 11:38 AM
  4. Getting problems in FC4 while instalation
    By kitty_bhoo in forum Installation
    Replies: 13
    Last Post: 09-12-2006, 10:34 PM
  5. Fedora Core 3, Clean Install - Not working!
    By pcjackson in forum Installation
    Replies: 17
    Last Post: 03-05-2006, 07:38 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
  •