Results 1 to 4 of 4

Thread: calendar migration failed with utf8 chars

  1. #1
    xingjing Guest

    Default calendar migration failed with utf8 chars


    I am migrating our institute's calendar using perl/soap. I get the old appointment info from the datebase then create soap envelops to send to zimbra's soap API. Most appointments are migrated without problem. But when appointment's organizer, attendee, location, summary or comment contain special chars, the appointment failed to get into zimbra. The following is a failed envelop:
    <ns0:CreateAppointmentRequest xmlns:ns0="urn:zimbraMail">
      <m l="291">
        <inv allday="0" loc="" name="Dinner with Ângela" fb="B" type="event" transp="O">
          <or a="" d="Ana smith"/>
          <s d="20060309T191500"/>
          <e d="20060309T220000"/>
        <e p="Ana smith" a="" t="t"/>
        <su>Dinner with Ângela</su>
        <mp ct="multipart/alternative">
          <mp ct="text/plain">
            <content>The following is a meeting request migrated from OpenGroupware:Dinner with Ângela Time:March 9, 2006, 19:15:00 - 22:00:00 (GMT-05) America/New_York Organizer:&quot;Ana smith&quot;&lt;; Location:Tina´s,  Resources:
     Invitees: &quot;Ana smith&quot;&lt;;; </content>
          <mp ct="text/html">
            <content>&lt;h3&gt;The following is a meeting request migrated from OpenGroupware:&lt;/h3&gt;&lt;p&gt;&lt;table border=&apos;0&apos;&gt;&lt;tr&gt;&lt;th align=left&gt;Subject: &lt;/th&gt;&lt;td&gt;Dinner with Ângela&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;th align=left&gt;Organizer: &lt;/th&gt;&lt;td&gt;Ana smith&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;th align=left&gt;Location: &lt;/th&gt;&lt;td&gt;Tina´s&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;th align=left&gt;Time: &lt;/th&gt;&lt;td&gt;March 9, 2006, 19:15:00 - 22:00:00 (GMT-05) America/New_York&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;th align=left&gt;Invitees: &lt;/th&gt;&lt;td&gt;&quot;Ana smith&quot;&lt;;; &lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/p&gt;</content>
    The error I got is
    <ns0:Fault xmlns:ns0="">
        <ns0:Text>parse error: Error on line 2 of document  : The element type &quot;ns0:Envelope&quot; must be terminated by the
     matching end-tag &quot;&lt;/ns0:Envelope&gt;&quot;. Nested exception: The element type &quot;ns0:Envelope&quot; must be term
    inated by the matching end-tag &quot;&lt;/ns0:Envelope&gt;&quot;.</ns0:Text>
        <ns1:Error xmlns:ns1="urn:zimbra">
          <ns1:Trace>com.zimbra.common.service.ServiceException: parse error: Error on line 2 of document  : The element type &qu
    ot;ns0:Envelope&quot; must be terminated by the matching end-tag &quot;&lt;/ns0:Envelope&gt;&quot;. Nested exception: The ele
    ment type &quot;ns0:Envelope&quot; must be terminated by the matching end-tag &quot;&lt;/ns0:Envelope&gt;&quot;.
            at com.zimbra.common.service.ServiceException.PARSE_ERROR(
            at com.zimbra.soap.SoapEngine.dispatch(
            at com.zimbra.soap.SoapServlet.doPost(
            at javax.servlet.http.HttpServlet.service(
            at com.zimbra.cs.servlet.ZimbraServlet.service(
            at javax.servlet.http.HttpServlet.service(
            at org.mortbay.jetty.servlet.ServletHolder.handle(
            at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(
            at org.mortbay.servlet.UserAgentFilter.doFilter(
            at org.mortbay.servlet.GzipFilter.doFilter(
            at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(
            at org.mortbay.jetty.servlet.ServletHandler.handle(
            at org.mortbay.jetty.servlet.SessionHandler.handle(
            at org.mortbay.jetty.handler.ContextHandler.handle(
            at org.mortbay.jetty.webapp.WebAppContext.handle(
            at org.mortbay.jetty.handler.ContextHandlerCollection.handle(
            at org.mortbay.jetty.handler.HandlerCollection.handle(
            at org.mortbay.jetty.handler.HandlerWrapper.handle(
            at org.mortbay.jetty.handler.RewriteHandler.handle(
            at org.mortbay.jetty.handler.HandlerWrapper.handle(
            at org.mortbay.jetty.Server.handle(
            at org.mortbay.jetty.HttpConnection.handleRequest(
            at org.mortbay.jetty.HttpConnection$RequestHandler.content(
            at org.mortbay.jetty.HttpParser.parseNext(
            at org.mortbay.jetty.HttpParser.parseAvailable(
            at org.mortbay.jetty.HttpConnection.handle(
            at org.mortbay.thread.BoundedThreadPool$
    Caused by: org.dom4j.DocumentException: Error on line 2 of document  : The element type &quot;ns0:Envelope&quot; must be terminated by the matching end-tag &quot;&lt;/ns0:Envelope&gt;&quot;. Nested exception: The element type &quot;ns0:Envelope&quot; must be terminated by the matching end-tag &quot;&lt;/ns0:Envelope&gt;&quot;.
            at com.zimbra.common.soap.Element.parseXML(
            at com.zimbra.common.soap.Element.parseXML(
            at com.zimbra.soap.SoapEngine.dispatch(
            ... 27 more
    I think it breaks at "Ângela". Basically the error says the soap envelop could not be parsed. But how can I make it work? The same thing happens whereever the special chars appeared in organizer, attendee, location, summary, mp or comment.

    Any help will be greatly appreciated,


  2. #2
    Join Date
    Oct 2005
    Thatcher, AZ
    Rep Power


    What version? I think there was a bug open on this, so you might have an older version. If it's 4.5.10, please search Bugzilla for it. If you can't find it, please file it.

  3. #3
    xingjing Guest


    We are using zimbra version 5.0 - RC2.

    I am wondering if replacing "Â" with "&Acirc;" would work. But there are so many chars I could not possibly replace them all. It got have a better way to do so.

    BTW, I checked bugzilla and did not find anything helpful. Should I file a bug?


  4. #4
    xingjing Guest


    I tried to replace "Â" with "\302", "\xC2", "&Acirc;", "&#194;", all of them get parser error. Anyone have better idea?

Similar Threads

  1. My Zimbra server down ... please help :)
    By frankb in forum Administrators
    Replies: 2
    Last Post: 12-12-2007, 10:29 AM
  2. Lotus migration
    By babou in forum Migration
    Replies: 15
    Last Post: 03-05-2007, 09:33 PM
  3. Issues with Outlook Calendar Migration - ics
    By soxfan in forum Migration
    Replies: 2
    Last Post: 02-28-2007, 05:50 PM
  4. Replies: 2
    Last Post: 02-26-2007, 10:37 AM
  5. Replies: 18
    Last Post: 03-20-2006, 01:22 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