Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

(no subject)

Page 1.0 of 1.24
  • Use with Zimbra 6.0.4

     
  • LiverpoolFCfan
    LiverpoolFCfan
    2013-12-24

    Have you enbabled debug logging?
    What errors are you seeing (search the debug log file for "[ERROR]" ?

    Double check your alias directive - make sure it is pointing to the right place ..../z-push/index.php (including the index.php)

     
  • Do you mean LOGLEVEL in z-push config.php? No. I set ZIMBRA_DEBUG to true in zbe config.php
    The only errors I see are the ones I posted before, all the same error.
    The alias directive is correct, I checked it.

     
  • LiverpoolFCfan
    LiverpoolFCfan
    2013-12-24

    You need z-push log set to debug or higher before the ZIMBRA_DEBUG logging will show.

     
  • LiverpoolFCfan
    LiverpoolFCfan
    2013-12-24

    You are best to set
    define('LOGLEVEL', LOGLEVEL_WBXML);
    in the z-push config.php file while you are debugging issues. This will show the messaging between the device and the server.

     
  • LiverpoolFCfan
    LiverpoolFCfan
    2013-12-24

    Interesting. I wonder if zimbra 6 does not handle the AuthToken in the cookie. I had been led to believe it worked in every scenario.

    Can you try a test for me, please.

    Starting at line 10300 is the following block of code.

            usleep($this->_soapDelayMicroSeconds); 
            $DosFilterError = false;
    //                            <authToken>'.$this->_authtoken.'</authToken>
    
            if($header==false) {
                $header = '<context xmlns="urn:zimbra">
                                <session id="'.$this->_sessionid.'" />';
                if ($returnJSON == true) {
                    $header .= '<format type="js" />';
                }
                $header .= '</context>';
            }
    

    Move the commented out authToken line down4 lines, and remove the // at the start so it looks like

            usleep($this->_soapDelayMicroSeconds); 
            $DosFilterError = false;
    
            if($header==false) {
                $header = '<context xmlns="urn:zimbra">
                                <authToken>'.$this->_authtoken.'</authToken>
                                <session id="'.$this->_sessionid.'" />';
                if ($returnJSON == true) {
                    $header .= '<format type="js" />';
                }
                $header .= '</context>';
            }
    

    And, retest.

    Thanks

     
    Last edit: LiverpoolFCfan 2013-12-24
  • LiverpoolFCfan
    LiverpoolFCfan
    2013-12-24

    Your log does not show the changed zimbra request headers.

    For example

    24/12/2013 11:56:51 [19801] [DEBUG] [fmazzi] [samsung1351722056523875] Zimbra->SoapRequest(): SOAP Message: <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
                                <soap:Header><context xmlns="urn:zimbra">
                                <session id="12496304" /><format type="js" /></context></soap:Header>
                                <soap:Body><GetInfoRequest sections="mbox,prefs,attrs,idents,dsrcs,children" xmlns="urn:zimbraAccount"></GetInfoRequest></soap:Body>
                             </soap:Envelope>
    

    just shows the session Id but no authToken in the header

     
  • We solved the problem!!! The modify you suggested was right!
    Thank you very much, you are great!
    Merry Christmas, bye

     
  • LiverpoolFCfan
    LiverpoolFCfan
    2013-12-24

    Fantastic. Thanks for confirming.

    I will have to add it back for the next release.

    And, thanks for providing the logs. I will remove your earlier posts with attachments as I cannot simply strip the attachments.

    Have a great Christmas.

     
    Last edit: LiverpoolFCfan 2013-12-24
  • LiverpoolFCfan
    LiverpoolFCfan
    2013-12-24

    • summary: After Upgrade sync broken --> [SOLVED] After Upgrade sync broken
     
  • LiverpoolFCfan
    LiverpoolFCfan
    2013-12-24

    Adding [SOLVED] to title.

     
  • LiverpoolFCfan
    LiverpoolFCfan
    2014-01-09

    • status: open --> closed
    • Group: Release 57 --> Release 58