Menu

#89 [SOLVED] All email items are have empty subject/body and are dated to 1/1/1970

None
closed
nobody
None
1
2014-06-26
2014-06-18
Markus Doll
No

Hi there,

thanks for the good work you're doing here.

My freshly installed setup is as follows:

Ubuntu 12.04 TLS
Apache 2.4
PHP5
Latest Zimbra
Latest Z-Push Backend
Latest Z-Push (final)

Z-Push & Zimbra are hosted on the same box, Zimbra uses different ports, Z-Push is on 443.

Login to Z-Push works properly, no errors in z-push-error.log.

When I setup an email account on either my stock LG G2, my stock Galaxy S4 or on my Samsung Galaxy Tab Pro, everything seems to be fine, setup completes and starts synching.

When I open the relevant mailbox I only see emails with empty subject, empty bodys and all are dated back to 1/1/1970 or to the time/date the mailbox was added to the mobile device.

When accessing this mailbox through IMAP everything is fine.

Any idea what might be the problem or any hints what to do to get this working?

Attached you find a debug log from the last setup I did.

Thanks a lot!

Best,
Markus

1 Attachments

Discussion

  • LiverpoolFCfan

    LiverpoolFCfan - 2014-06-23

    From your log file it looks like you are not getting proper responses from zimbra.

    You will need to turn up zimbra debugging in addition to z-push debugging.

    Please set z-push logging to WBXML level, and set ZIMBRA_DEBUG to true, delete the account from the mobile, clear the logs, re-add the account to the mobile, and collect the log files z-push.log, z-push-error.log and apache ssl_error_log

    Click on my username to the left of this post, and use the Send a Message link to send me a private message including a working email address for yourself. I will reply from an email address to which you can send the log files. I will take a look at them to see if I can see anything further.

     
  • Markus Doll

    Markus Doll - 2014-06-24

    Thanks to LiverpoolFCFan this has been solved.

    In the end it turned out to be a unresolved bug in Apache 2.2 (see bug 46709 and bug 47087) that made it returning error pages of type "417 expectation failed".

    The Following explanations were taken from this article:

    The issue is that some clients set the Expect header and only send the request headers before a PUT or POST of data. This allows the server to respond with errors/redirects/security violations prior to the client sending the request body (PUT or POST data). This is a laudable goal, but apparently the the client does not wait until it gets a response and just pushes out the body of the request, which results in the 417 error.

    To remove the Expect header from the request early using mod_headers use this config directive:

    IfModule mod_headers.c
    RequestHeader unset Expect early
    /IfModule

    This works because the client is not actually waiting for the "100 Continue" response and acting as if the Expect header were not set.

    Thanks @ LiverpoolFCFan for pointing me to the right solution.

     
  • LiverpoolFCfan

    LiverpoolFCfan - 2014-06-24

    EDIT: You beat me to it posting a follow-up so I will just point out the error that was found in the log file once ZIMBRA_DEBUG was set to true.

    From the log file provided I can confirm that you are getting unexpected responses back from the Apache server

    Zimbra->SoapRequest(): SOAP response: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
    <html><head>
    <title>417 Expectation Failed</title>
    </head><body>
    <h1>Expectation Failed</h1>
    <p>The expectation given in the Expect request-header
    field could not be met by this server.
    The client sent<pre>
        Expect: 100-continue
    </pre>
    </p><p>Only the 100-continue expectation is supported.</p>
    <hr>
    <address>Apache/2.2.22 (Ubuntu) Server at xxxxxxxxxxx Port 443</address>
    </body></html>
    

    If you search the web for that response you can find suggestions on fixing it depending on your configuration. Bear in mind that zimbra.php is making CURL calls to the zimbra backend.

     

    Last edit: LiverpoolFCfan 2014-06-24
  • LiverpoolFCfan

    LiverpoolFCfan - 2014-06-24
    • Group: Release 60 --> None
     
  • LiverpoolFCfan

    LiverpoolFCfan - 2014-06-25
    • summary: All email items are have empty subject/body and are dated to 1/1/1970 --> [SOLVED] All email items are have empty subject/body and are dated to 1/1/1970
     
  • LiverpoolFCfan

    LiverpoolFCfan - 2014-06-26
    • status: open --> closed
     

Log in to post a comment.