none
Struggling against ActiveSync implementation and ipad RRS feed

  • Question

  • Hi everybody, I'm having issues about a custom AvtiveSync implementation,
    Everything works on windows phone, blackberry 10, android (from 4.x +) and ios (from 8.x +). But the iPad Mail client crashes and closes instantaneously.
    Once crashed and rebooted the email is successfully loaded and displayed.

    I spent a lot of time debugging this thing with no success, I hope somebody might help me..

    This application is been working fine for the last 3 years. I can exclude problems on XML to WBXML conversion.
    I suppose there are something wrong in the mime or some other tags.

    Here a sample request/response

    <?xml version="1.0" encoding="utf-8"?>
    <airsync:Sync xmlns:airsync="AirSync:">
    <airsync:Collections>
    <airsync:Collection>
    <airsync:SyncKey>99</airsync:SyncKey>
    <airsync:CollectionId>e15ad30b-9ed9-4759-809e-a363e12b2bcc</airsync:CollectionId>
    <airsync:GetChanges>0</airsync:GetChanges>
    <airsync:Options>
    <airsync:FilterType>3</airsync:FilterType>
    <airsync:MIMESupport>2</airsync:MIMESupport>
    <airsyncbase:BodyPreference xmlns:airsyncbase="AirSyncBase:">
    <airsyncbase:Type>4</airsyncbase:Type>
    </airsyncbase:BodyPreference>
    </airsync:Options>
    <airsync:Commands>
    <airsync:Fetch>
    <airsync:ServerId>785d3ebb-3882-4c51-a074-060992f6e88f</airsync:ServerId>
    </airsync:Fetch>
    </airsync:Commands>
    </airsync:Collection>
    </airsync:Collections>
    </airsync:Sync>

    <Sync xmlns="AirSync:" xmlns:contacts="Contacts:" xmlns:calendar="Calendar:" xmlns:email="Email:" xmlns:airsyncbase="AirSyncBase:">
    <Collections>
    <Collection>
    <SyncKey>100</SyncKey>
    <CollectionId>e15ad30b-9ed9-4759-809e-a363e12b2bcc</CollectionId>
    <Status>1</Status>
    <Responses>
    <Fetch>
    <ServerId>785d3ebb-3882-4c51-a074-060992f6e88f</ServerId>
    <Status>1</Status>
    <ApplicationData>
    <email:To>"domain02 S.P.A. - name0011 name001" &lt;m.name0011@domain02.com&gt;</email:To>
    <email:From>"name001 name0011" &lt;name001@domain02.net&gt;</email:From>
    <email:Subject>Re: text cc</email:Subject>
    <email:DateReceived>2015-06-25T09:22:25.000Z</email:DateReceived>
    <email:DisplayTo>Device User</email:DisplayTo>
    <email:Importance>1</email:Importance>
    <email:Read>0</email:Read>
    <airsyncbase:Body>
    <airsyncbase:Type>4</airsyncbase:Type>
    <airsyncbase:EstimatedDataSize>6252</airsyncbase:EstimatedDataSize>
    <airsyncbase:Data>MIME-Version: 1.0
    Date: Thu, 25 Jun 2015 11:22:26 +0200
    Message-ID: &lt;785d3ebb-3882-4c51-a074-060992f6e88f&gt;
    Subject: Re: text cc
    From: "name001 name0011" &lt;name001@domain02.net&gt;
    To: "domain02 S.P.A. - name0011 name001" &lt;m.name0011@domain02.com&gt;
    Content-Type: text/html; charset=UTF-8
    Content-Transfer-Encoding: quoted-printable
    
    &lt;div dir=3D"ltr"&gt;ciao ciao&lt;/div&gt;&lt;div class=3D"gmail_extra"&gt;&lt;br&gt;&lt;div class=
    =3D"gmail_quote"&gt;On 25 June 2015 at 11:19, name001 name0011 &lt;span dir=3D"l=
    tr"&gt;&amp;lt;&lt;a href=3D"mailto:name001@domain02.net" target=3D"_blank"&gt;name001@=
    domain02.net&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=3D"gmail_quote" st=
    yle=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"&gt;&lt;div =
    dir=3D"ltr"&gt;hello&lt;/div&gt;&lt;div class=3D"HOEnZb"&gt;&lt;div class=3D"h5"&gt;&lt;div class=
    =3D"gmail_extra"&gt;&lt;br&gt;&lt;div class=3D"gmail_quote"&gt;On 25 June 2015 at 11:12, M=
    assimo name0011 &lt;span dir=3D"ltr"&gt;&amp;lt;&lt;a href=3D"mailto:name001@domain02.=
    net" target=3D"_blank"&gt;name001@domain02.net&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;bloc=
    kquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #cc=
    c solid;padding-left:1ex"&gt;&lt;div dir=3D"ltr"&gt;gfdgdf&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;div class=
    =3D"gmail_extra"&gt;&lt;br&gt;&lt;div class=3D"gmail_quote"&gt;On 25 June 2015 at 10:51, M=
    assimo name0011 &lt;span dir=3D"ltr"&gt;&amp;lt;&lt;a href=3D"mailto:name001@domain02.=
    net" target=3D"_blank"&gt;name001@domain02.net&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;bloc=
    kquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #cc=
    c solid;padding-left:1ex"&gt;&lt;div dir=3D"ltr"&gt;xxxxxxxxxxxxxx&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;d=
    iv class=3D"gmail_extra"&gt;&lt;br&gt;&lt;div class=3D"gmail_quote"&gt;On 25 June 2015 at =
    10:31, name001 name0011 &lt;span dir=3D"ltr"&gt;&amp;lt;&lt;a href=3D"mailto:name001@se=
    curcube.net" target=3D"_blank"&gt;name001@domain02.net&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;=
    br&gt;&lt;blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left=
    :1px #ccc solid;padding-left:1ex"&gt;&lt;div dir=3D"ltr"&gt;test vari&lt;/div&gt;&lt;div&gt;&lt;div=
    &gt;&lt;div class=3D"gmail_extra"&gt;&lt;br&gt;&lt;div class=3D"gmail_quote"&gt;On 25 June 2015 =
    at 10:28, name001 name0011 &lt;span dir=3D"ltr"&gt;&amp;lt;&lt;a href=3D"mailto:name001=
    @domain02.net" target=3D"_blank"&gt;name001@domain02.net&lt;/a&gt;&amp;gt;&lt;/span&gt; wrot=
    e:&lt;br&gt;&lt;blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-l=
    eft:1px #ccc solid;padding-left:1ex"&gt;&lt;div dir=3D"ltr"&gt;reply&lt;/div&gt;&lt;div class=
    =3D"gmail_extra"&gt;&lt;br&gt;&lt;div class=3D"gmail_quote"&gt;On 25 June 2015 at 10:22, M=
    assimo name0011 &lt;span dir=3D"ltr"&gt;&amp;lt;&lt;a href=3D"mailto:name001@domain02.=
    net" target=3D"_blank"&gt;name001@domain02.net&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;bloc=
    kquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #cc=
    c solid;padding-left:1ex"&gt;&lt;div dir=3D"ltr"&gt;test cc&lt;/div&gt;
    &lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;/div&gt;
    &lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;/div&gt;
    &lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;/div&gt;
    &lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;/div&gt;
    &lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;/div&gt;
    &lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;/div&gt;
    </airsyncbase:Data>
    </airsyncbase:Body>
    <email:MessageClass>IPM.Note.SMIME</email:MessageClass>
    <email:InternetCPID>20127</email:InternetCPID>
    <email:ContentClass>urn:content-classes:message</email:ContentClass>
    </ApplicationData>
    </Fetch>
    </Responses>
    </Collection>
    </Collections>
    </Sync>


    Thursday, June 25, 2015 10:24 AM

Answers

All replies

  • Hello bastianonm,

    Thank you for posting. I can take a look at a Fiddler trace and validate the EAS data. However, it sounds like the real problem is specific to an iPad application, which I won't be able to debug. Whoever owns that application should be engaged to determine why it is failing.

    If you'd like for me to look at the trace, the instructions for collecting it can be found here. You can email the trace to my attention at dochelp at microsoft dot com. Please make sure the trace does not contain any confidential data.

    Best regards,
    Matt Weber | Microsoft Open Specifications Team

    Thursday, June 25, 2015 1:16 PM
  • Hello bastianonm,

    I have not seen an email from you, so if you've sent something it may have been caught in a filter. If you've decided not to pursue this from the perspective of the EAS protocol, please let me know.

    Best regards,
    Matt Weber | Microsoft Open Specifications Team

    Monday, June 29, 2015 9:37 PM
  • Fortunately I found the problem, sometime my response was wrong.
    Sometime I was adding other stuff in the response, and this wasn't appreciated from the ipad :-)
    Friday, August 7, 2015 8:50 AM