Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Getting ResolutionSet with wrong TotalItemsInView from ResolveNames #177

Open
poizan42 opened this issue Apr 4, 2018 · 0 comments
Open

Comments

@poizan42
Copy link
Contributor

poizan42 commented Apr 4, 2018

Seems to happen on the "free tier" msft webmails (i.e. outlook.com and friends) when creating a contact containing yourself. This causes an exception to be thrown here:

reader.ReadStartElement(XmlNamespace.Types, XmlElementNames.Resolution);

Trace (I created [email protected] for the purpose of testing this, so should be no PII to worry about, at least for anyone outside of Microsoft)

<Trace Tag="EwsRequestHttpHeaders" Tid="1" Time="2018-04-04 17:25:24Z">
POST /EWS/Exchange.asmx HTTP/1.1
Content-Type: text/xml; charset=utf-8
Accept: text/xml
User-Agent: EWSEditor (ExchangeServicesClient/2.2.1.0)
Accept-Encoding: gzip,deflate
client-request-id: 774c8d97-8ec1-44be-acaf-669ff6266a7d
return-client-request-id: true
</Trace>
<Trace Tag="EwsRequest" Tid="1" Time="2018-04-04 17:25:24Z" Version="2.2.1.0">
  <?xml version="1.0" encoding="utf-8"?>
  <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Header>
      <t:RequestServerVersion Version="Exchange2013" />
    </soap:Header>
    <soap:Body>
      <m:ResolveNames ReturnFullContactData="true" SearchScope="ContactsActiveDirectory" ContactDataShape="IdOnly">
        <m:UnresolvedEntry>[email protected]</m:UnresolvedEntry>
      </m:ResolveNames>
    </soap:Body>
  </soap:Envelope>
</Trace>
<Trace Tag="EwsResponseHttpHeaders" Tid="1" Time="2018-04-04 17:25:24Z">
HTTP/1.1 200 OK
Transfer-Encoding: chunked
Content-Encoding: gzip
Vary: Accept-Encoding
request-id: dd4d060c-7154-4f79-87a4-fbcdd76cc3aa
client-request-id: 774c8d97-8ec1-44be-acaf-669ff6266a7d
X-CalculatedFETarget: VI1PR09CU002.internal.outlook.com
X-BackEndHttpStatus: 200,200
X-FEProxyInfo: VI1PR09CA0054.EURPRD09.PROD.OUTLOOK.COM
X-CalculatedBETarget: VI1PR08MB0336.eurprd08.prod.outlook.com
x-EwsHandler: ResolveNames
X-DiagInfo: VI1PR08MB0336
X-BEServer: VI1PR08MB0336
X-FEServer: VI1PR09CA0054,AM5PR0701CA0001
Cache-Control: private
Content-Type: text/xml; charset=utf-8
Date: Wed, 04 Apr 2018 17:25:23 GMT
Set-Cookie: exchangecookie=d34a5131e8614f1bb88f6c4bf2916ecd; path=/
Server: Microsoft-IIS/10.0
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
</Trace>
<Trace Tag="EwsResponse" Tid="1" Time="2018-04-04 17:25:24Z" Version="2.2.1.0">
  <?xml version="1.0" encoding="utf-8"?>
  <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
    <s:Header>
      <h:ServerVersionInfo MajorVersion="15" MinorVersion="20" MajorBuildNumber="631" MinorBuildNumber="13" Version="V2018_01_08" xmlns:h="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
    </s:Header>
    <s:Body>
      <m:ResolveNamesResponse xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types">
        <m:ResponseMessages>
          <m:ResolveNamesResponseMessage ResponseClass="Success">
            <m:ResponseCode>NoError</m:ResponseCode>
            <m:ResolutionSet TotalItemsInView="3" IncludesLastItemInRange="true">
              <t:Resolution>
                <t:Mailbox>
                  <t:Name>[email protected]</t:Name>
                  <t:EmailAddress>[email protected]</t:EmailAddress>
                  <t:RoutingType>SMTP</t:RoutingType>
                  <t:MailboxType>Contact</t:MailboxType>
                  <t:ItemId Id="AQMkADAwATM3ZmYAZS0xMzUxLTBjNTctMDACLTAwCgBGAAADLoKVdJ//30+zgOfP38OQzwcA97l3KI0kb0qTzK3g8EnWFwAAAgEOAAAA97l3KI0kb0qTzK3g8EnWFwAAAk+kAAAA" ChangeKey="EQAAABYAAAD3uXcojSRvSpPMreDwSdYXAAAAABE1" />
                </t:Mailbox>
              </t:Resolution>
              <t:Resolution>
                <t:Mailbox>
                  <t:Name>puid-00037FFE13510C57</t:Name>
                  <t:EmailAddress>[email protected]</t:EmailAddress>
                  <t:RoutingType>SMTP</t:RoutingType>
                  <t:MailboxType>Mailbox</t:MailboxType>
                </t:Mailbox>
              </t:Resolution>
            </m:ResolutionSet>
          </m:ResolveNamesResponseMessage>
        </m:ResponseMessages>
      </m:ResolveNamesResponse>
    </s:Body>
  </s:Envelope>
</Trace>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant