Results 1 to 7 of 7

Thread: [SOLVED] Z-push Zimbra backend workaround

  1. #1
    Inchoate is offline Starter Member
    Join Date
    Oct 2010
    Posts
    3
    Rep Power
    4

    Default [SOLVED] Z-push Zimbra backend workaround

    Hello,

    I'm sorry i'm not sure if this is the best place to post this or not or if the backend developers already know about it but I've found a bug and subsequently a fix/workaround for an error within the zimbra z-push backend version 45 when working with PHP5.2.14 (I'm not able to test with other versions) with the zimbra provisioning 47.

    When syncing calendar to an iphone ios4 device (again, sorry I haven't got other devices to test with) a soap error occurs:
    10/31/10 14:43:23 [8717] ERROR: service.INVALID_REQUEST: <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope"><soap:Header><context xmlns="urn:zimbra"><session id="1945">1945</session><change token="55"/></context></soap:Header><soap:Body><soap:Fault><soap:Code><soa p:Value>soap:Sender</soap:Value></soap:Code><soap:Reason><soap:Text>invalid request: invalid long value '1.285854203E+12' for attribute: calExpandInstStart</soap:Text></soap:Reason><soapetail><Error xmlns="urn:zimbra"><Code>service.INVALID_REQUEST</Code><Trace>com.zimbra.common.service.ServiceExcep tion: invalid request: invalid long value '1.285854203E+12' for attribute: calExpandInstStart

    Basically, it is due to the variables $calExpandInstStart and $calExpandInstEnd containing scientific notation values.

    The workaround is as follows:
    Replace Line 1284 and 1285 with:
    $calExpandInstStart = sprintf("%.0f",$cutoffdate * 1000);
    $calExpandInstEnd = sprintf("%.0f",(time() + (366*24*60*60))* 1000);

    Replace Line 1296 and 1297 with:
    $calExpandInstStart = sprintf("%.0f",(time() - (366*24*60*60))* 1000);
    $calExpandInstEnd = sprintf("%.0f",(time() + (366*24*60*60))* 1000);

    Replace Line 1310 and 1311 with:
    $calExpandInstStart = sprintf("%.0f",(time() - (366*24*60*60))* 1000);
    $calExpandInstEnd = sprintf("%.0f",(time() + (366*24*60*60))* 1000);

    This workaround/patch/fix basically converts scientific notation to an integer. There may be a better work around than this, I'm just sharing what I've found in the hope that somebody else will find it useful.

    Thanks
    Craig

  2. #2
    maxxer's Avatar
    maxxer is offline Trained Alumni
    Join Date
    Feb 2009
    Location
    Lecco, Italy
    Posts
    554
    Rep Power
    7

    Default

    I believe the best place for these suggestion is :
    https://sourceforge.net/projects/zimbrabackend/

    file a new support request.
    YetOpen S.r.l. ~ Your open source partner
    Lecco (LC) - ITALY
    http://www.yetopen.it

  3. #3
    Inchoate is offline Starter Member
    Join Date
    Oct 2010
    Posts
    3
    Rep Power
    4

    Default

    Thanks, have posted the workaround there

  4. #4
    liverpoolfcfan's Avatar
    liverpoolfcfan is offline Outstanding Member
    Join Date
    Oct 2009
    Location
    Dublin, IRELAND
    Posts
    712
    Rep Power
    6

    Default

    This issue is resolved in Release 46 and later of the backend.

    See post http://www.zimbra.com/forums/mobilit...tml#post201214 for details.

  5. #5
    aarat is offline Active Member
    Join Date
    Aug 2011
    Posts
    32
    Rep Power
    4

    Default

    Zimbra backend seems much stable in our organization however if we forward mail containing attachments the mail is forwarded but the attachment are not.

    Please help
    Zimbra Version 8.0.1_G.A._5438 (build 20121105164416) running on ubuntu 10.04 x64

  6. #6
    maxxer's Avatar
    maxxer is offline Trained Alumni
    Join Date
    Feb 2009
    Location
    Lecco, Italy
    Posts
    554
    Rep Power
    7

    Default

    Quote Originally Posted by aarat View Post
    Zimbra backend seems much stable in our organization however if we forward mail containing attachments the mail is forwarded but the attachment are not.
    this is very likely a problem of the mail client, not of the backend.
    if you use Android the stock exchange client in 2.3.x doesn't forward attachments, nor the quoted text.
    In ICS (Android 4.0) this is fixed.
    YetOpen S.r.l. ~ Your open source partner
    Lecco (LC) - ITALY
    http://www.yetopen.it

  7. #7
    liverpoolfcfan's Avatar
    liverpoolfcfan is offline Outstanding Member
    Join Date
    Oct 2009
    Location
    Dublin, IRELAND
    Posts
    712
    Rep Power
    6

    Default

    Quote Originally Posted by aarat View Post
    Zimbra backend seems much stable in our organization however if we forward mail containing attachments the mail is forwarded but the attachment are not.

    Please help
    This is a known limitation. It will be addressed in the next release.

    In the meantime, you should be able to save the attachments locally on your phone, then re-attach them manually if you need to forward them urgently.

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. Major Issue - 5.0RC2 NE to 5.0GA NE failed
    By DougWare in forum Installation
    Replies: 7
    Last Post: 01-06-2008, 09:56 PM
  3. Can't start Zimbra!
    By zibra in forum Administrators
    Replies: 5
    Last Post: 03-22-2007, 11:34 AM
  4. Fedora Core 3, Clean Install - Not working!
    By pcjackson in forum Installation
    Replies: 17
    Last Post: 03-05-2006, 07:38 PM
  5. Mail logs
    By Rick Baker in forum Installation
    Replies: 8
    Last Post: 01-17-2006, 04:33 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
  •