syntax error in activesync

Mihai Badici <[email protected]> Thu, 20 Apr 2023 21:46:16 +0300
Newsgroups gmane.comp.kde.devel.kroupware
Message-ID <b7ff867d-6681-60ef-5781-04e259acc1bd__33697.0982303441$1682016994$gmane$org@badici.ro>
This is a multipart message in MIME format,
containing the original message body
and a footer added by Bitdefender

--=-bd-boundary-Qg1DwA8BDehrGRUb
Content-Type: multipart/alternative;
 boundary="------------nCjKzXNSa9ul8irpGxtw033H"

This is a multi-part message in MIME format.
--------------nCjKzXNSa9ul8irpGxtw033H
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: quoted-printable

I started to play again a little with syncroton ( from git).

First I found this in error log:

PHP Parse error: =C2=A0syntax error, unexpected ';', expecting ')' in=20
/usr/share/syncroton/lib/ext/Syncroton/Exception/Status/Settings.php on=20
line 35

It looks like in

protected$_errorMessages=3D array(
 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0self::PROTOCOL_ERROR =C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=3D> "Protocol error";
 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0self::ACCESS_DENIED =C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=3D> "Access denied";
 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0self::SERVICE_UNAVAILABLE =C2=A0=
=C2=A0=3D> "Server unavailable";



should be

protected$_errorMessages=3D array(
 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0self::PROTOCOL_ERROR =C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=3D> "Protocol error",
 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0self::ACCESS_DENIED =C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=3D> "Access denied",
 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0self::SERVICE_UNAVAILABLE =C2=A0=
=C2=A0=3D> "Server unavailable",

and so on.


My old problem is syncroton is not working on android with the default=20
gmail client. I had this problem since some time ( I changed about 3=20
phones - and syncroton had multiple revisions- so is somehow systematic).

Strange enough, I have an outlook 2013 under wine which is working=20
pretty good ( this is the newest version I manage to install under wine=20
). Thunderbird with Tbsync plugin also is working and on android I have=20
bluemail working without issue.

In console log I have only

20-Apr-2023 20:41:24 +0300]:=20
Cmd=3DFolderSync&User=3Dtest.as%40machinet.ro&DeviceId=3Dandroidc15673212=
53&DeviceType=3DAndroid=20
[7.2/8.2]: 0.1588 sec
[20-Apr-2023 20:41:26 +0300]:=20
Cmd=3DSettings&User=3Dtest.as%40machinet.ro&DeviceId=3Dandroidc1567321253=
&DeviceType=3DAndroid=20
[8.3/9.3]: 0.1644 sec
[20-Apr-2023 21:25:41 +0300]:=20
Cmd=3DFolderSync&User=3Dtest.as%40machinet.ro&DeviceId=3Dandroidc15673212=
53&DeviceType=3DAndroid=20
[1/2]: 0.0703 sec
[20-Apr-2023 21:25:41 +0300]:=20
Cmd=3DFolderSync&User=3Dtest.as%40machinet.ro&DeviceId=3Dandroidc15673212=
53&DeviceType=3DAndroid=20
[1/2]: 0.0597 sec
[20-Apr-2023 21:25:41 +0300]:=20
Cmd=3DSettings&User=3Dtest.as%40machinet.ro&DeviceId=3Dandroidc1567321253=
&DeviceType=3DAndroid=20
[2/3]: 0.0797 sec

So no SYNC command. Gmail shows "gettings your messages" forever but I=20
can see any real trafic.

I suspect some particular "settings" answer make it crash or wait for=20
something. However I tested gmail client with exchange and outlook and=20
is working, so is not really a bug in the client, maybe the protocol=20
implementation is unclear.

Since I can use bluemail I didn't pay attention=C2=A0 but would be nice t=
o=20
work with the integrated client...


--------------nCjKzXNSa9ul8irpGxtw033H
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<html>
  <head>

    <meta http-equiv=3D"content-type" content=3D"text/html; charset=3DUTF=
-8">
  </head>
  <body>
    <p>I started to play again a little with syncroton ( from git).</p>
    <p>First I found this in error log:</p>
    <p><span style=3D"font-family:monospace"><span
          style=3D"color:#000000;background-color:#ffffff;">PHP Parse
          error: =C2=A0syntax error, unexpected ';', expecting ')' in
          /usr/share/syncroton/lib/ext/Syncroton/Exception/Status/Setting=
s.php
          on line 35</span><br>
      </span></p>
    <p><span style=3D"font-family:monospace">It looks like in</span></p>
    <p><span style=3D"font-family:monospace"><span
          style=3D"color:#000000;background-color:#ffffff;"> =C2=A0=C2=A0=
 </span><span
style=3D"font-weight:bold;color:#54ffff;background-color:#ffffff;">protec=
ted</span><span
          style=3D"color:#000000;background-color:#ffffff;"> </span><span
          style=3D"color:#18b2b2;background-color:#ffffff;">$_errorMessag=
es</span><span
          style=3D"color:#000000;background-color:#ffffff;"> =3D </span><=
span
          style=3D"color:#18b218;background-color:#ffffff;">array</span><=
span
          style=3D"color:#b2b2b2;background-color:#ffffff;">(</span><span
          style=3D"color:#000000;background-color:#ffffff;">
        </span><br>
        =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0self::PROTOCOL_ERROR =C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=3D&gt; <span
          style=3D"font-weight:bold;color:#ffff54;background-color:#fffff=
f;">"Protocol
          error"</span>;<br>
        =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0self::ACCESS_DENIED =C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=3D&gt; <span
          style=3D"font-weight:bold;color:#ffff54;background-color:#fffff=
f;">"Access
          denied"</span>;<br>
        =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0self::SERVICE_UNAVAILAB=
LE =C2=A0=C2=A0=3D&gt; <span
          style=3D"font-weight:bold;color:#ffff54;background-color:#fffff=
f;">"Server
          unavailable"</span>;</span></p>
    <p><span style=3D"font-family:monospace"><br>
      </span></p>
    <p><span style=3D"font-family:monospace"><br>
      </span></p>
    <p><span style=3D"font-family:monospace">should be <br>
      </span></p>
    <p><span style=3D"font-family:monospace"><span
          style=3D"color:#000000;background-color:#ffffff;"> =C2=A0=C2=A0=
 </span><span
style=3D"font-weight:bold;color:#54ffff;background-color:#ffffff;">protec=
ted</span><span
          style=3D"color:#000000;background-color:#ffffff;"> </span><span
          style=3D"color:#18b2b2;background-color:#ffffff;">$_errorMessag=
es</span><span
          style=3D"color:#000000;background-color:#ffffff;"> =3D </span><=
span
          style=3D"color:#18b218;background-color:#ffffff;">array</span><=
span
          style=3D"color:#b2b2b2;background-color:#ffffff;">(</span><span
          style=3D"color:#000000;background-color:#ffffff;">
        </span><br>
        =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0self::PROTOCOL_ERROR =C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=3D&gt; <span
          style=3D"font-weight:bold;color:#ffff54;background-color:#fffff=
f;">"Protocol
          error"</span><span
          style=3D"color:#000000;background-color:#ffffff;">,
        </span><br>
        =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0self::ACCESS_DENIED =C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=3D&gt; <span
          style=3D"font-weight:bold;color:#ffff54;background-color:#fffff=
f;">"Access
          denied"</span><span
          style=3D"color:#000000;background-color:#ffffff;">,
        </span><br>
        =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0self::SERVICE_UNAVAILAB=
LE =C2=A0=C2=A0=3D&gt; <span
          style=3D"font-weight:bold;color:#ffff54;background-color:#fffff=
f;">"Server
          unavailable"</span><span
          style=3D"color:#000000;background-color:#ffffff;">,</span><br>
        <br>
        and so on.<br>
      </span></p>
    <p><span style=3D"font-family:monospace"><br>
      </span></p>
    <p><span style=3D"font-family:monospace">My old problem is syncroton
        is not working on android with the default gmail client. I had
        this problem since some time ( I changed about 3 phones - and
        syncroton had multiple revisions- so is somehow systematic).</spa=
n></p>
    <p><span style=3D"font-family:monospace">Strange enough, I have an
        outlook 2013 under wine which is working pretty good ( this is
        the newest version I manage to install under wine ). Thunderbird
        with Tbsync plugin also is working and on android I have
        bluemail working without issue. <br>
      </span></p>
    <p><span style=3D"font-family:monospace">In console log I have only</=
span></p>
    <p><span style=3D"font-family:monospace"><span
          style=3D"color:#000000;background-color:#ffffff;">20-Apr-2023
          20:41:24 +0300]:
Cmd=3DFolderSync&amp;User=3Dtest.as%40machinet.ro&amp;DeviceId=3Dandroidc=
1567321253&amp;DeviceType=3DAndroid
          [7.2/8.2]: 0.1588 sec
        </span><br>
        [20-Apr-2023 20:41:26 +0300]:
Cmd=3DSettings&amp;User=3Dtest.as%40machinet.ro&amp;DeviceId=3Dandroidc15=
67321253&amp;DeviceType=3DAndroid
        [8.3/9.3]: 0.1644 sec
        <br>
        [20-Apr-2023 21:25:41 +0300]:
Cmd=3DFolderSync&amp;User=3Dtest.as%40machinet.ro&amp;DeviceId=3Dandroidc=
1567321253&amp;DeviceType=3DAndroid
        [1/2]: 0.0703 sec
        <br>
        [20-Apr-2023 21:25:41 +0300]:
Cmd=3DFolderSync&amp;User=3Dtest.as%40machinet.ro&amp;DeviceId=3Dandroidc=
1567321253&amp;DeviceType=3DAndroid
        [1/2]: 0.0597 sec
        <br>
        [20-Apr-2023 21:25:41 +0300]:
Cmd=3DSettings&amp;User=3Dtest.as%40machinet.ro&amp;DeviceId=3Dandroidc15=
67321253&amp;DeviceType=3DAndroid
        [2/3]: 0.0797 sec<br>
        <br>
        So no SYNC command. Gmail shows "gettings your messages" forever
        but I can see any real trafic.</span></p>
    <p><span style=3D"font-family:monospace">I suspect some particular
        "settings" answer make it crash or wait for something. However I
        tested gmail client with exchange and outlook and is working, so
        is not really a bug in the client, maybe the protocol
        implementation is unclear.</span></p>
    <p><span style=3D"font-family:monospace">Since I can use bluemail I
        didn't pay attention=C2=A0 but would be nice to work with the
        integrated client...<br>
      </span></p>
    <p><span style=3D"font-family:monospace">=C2=A0<br>
      </span><span style=3D"font-family:monospace"></span><span
        style=3D"font-family:monospace"></span></p>
  </body>
</html>

--------------nCjKzXNSa9ul8irpGxtw033H--

--=-bd-boundary-Qg1DwA8BDehrGRUb
Content-Type: text/plain; name="Bitdefender.txt"; charset="utf-8"
Content-Disposition: inline; filename="Bitdefender.txt"

-- 
This mail was scanned by BitDefender
For more information please visit http://www.bitdefender.com/

--=-bd-boundary-Qg1DwA8BDehrGRUb
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
users mailing list
[email protected]
https://lists.kolab.org/mailman/listinfo/users
--=-bd-boundary-Qg1DwA8BDehrGRUb--