office365 - Office 365 在 ARCHIVE ROOT 上调用 EWS findFolders 时抛出奇怪的错误
问题描述
最近 3 天(从 2020 年 2 月 1 日开始),我们看到许多客户在尝试使用 EWS findFolders 在 ARCHIVE ROOT 下查找文件夹时出现错误:“请求帐户没有序列化令牌的权限”。在 2 月 1 日之前,一切都很好,这里和那里很少,但现在发生了很多。
请告知这是什么以及如何解决?
更新 - 请求/响应日志
POST /EWS/Exchange.asmx HTTP/1.1
X-AnchorMailbox: xxxxx@aaaa.com
Content-Length: 1106
Content-Type: text/xml; charset=utf-8
Host: outlook.office365.com
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.9 (Java/1.8.0_60)
Accept-Encoding: gzip,deflate
Authorization: Basic
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types">
<soap:Header>
<t:RequestServerVersion Version="Exchange2016"/>
<t:ExchangeImpersonation>
<t:ConnectingSID>
<t:PrincipalName>xxxxx@aaaa.com</t:PrincipalName>
</t:ConnectingSID>
</t:ExchangeImpersonation>
</soap:Header>
<soap:Body>
<FindFolder xmlns="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types" Traversal="Deep">
<FolderShape>
<t:BaseShape>AllProperties</t:BaseShape>
<t:AdditionalProperties>
<t:FieldURI FieldURI="folder:ParentFolderId"/>
<t:FieldURI FieldURI="folder:DisplayName"/>
<t:FieldURI FieldURI="folder:FolderClass"/>
<t:FieldURI FieldURI="folder:DistinguishedFolderId"/>
</t:AdditionalProperties>
</FolderShape>
<IndexedPageFolderView MaxEntriesReturned="500" Offset="0" BasePoint="Beginning"/>
<ParentFolderIds>
<t:DistinguishedFolderId Id="archiveroot"/>
</ParentFolderIds>
</FindFolder>
</soap:Body>
</soap:Envelope>
HTTP/1.1 500 Internal Server Error
Cache-Control: private
Transfer-Encoding: chunked
Content-Type: text/xml; charset=utf-8
Server: Microsoft-IIS/10.0
request-id: f7ddc493-4389-4856-8d35-f8ddf435dd71
X-CalculatedFETarget: BN6PR10CU002.internal.outlook.com
X-BackEndHttpStatus: 500
Set-Cookie: exchangecookie=a2abababacecb6dc6d05fb2a8f30e7; expires=Thu, 04-Feb-2021 09:03:08 GMT; path=/; secure; HttpOnly
X-FEProxyInfo: BN6PR10CA0047.NAMPRD10.PROD.OUTLOOK.COM
X-CalculatedBETarget: BN7PR13MB2388.namprd13.prod.outlook.com
X-BackEndHttpStatus: 500
X-RUM-Validated: 1
X-MailboxGuid: 1c882ca8-aaaa-4444-8888-abcd410c5b0
x-EwsHandler: FindFolder
X-AspNet-Version: 4.0.30319
X-BeSku: WCS5
X-DiagInfo: BN7PR13MB2388
X-BEServer: BN7PR13MB2388
X-Proxy-RoutingCorrectness: 1
X-Proxy-BackendServerStatus: 500
X-FEServer: BN6PR10CA0047
X-Powered-By: ASP.NET
X-FEServer: MN2PR05CA0041
Date: Tue, 04 Feb 2020 09:03:07 GMT
<?xml version="1.0" encoding="utf-8"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<s:Fault>
<faultcode xmlns:a="http://schemas.microsoft.com/exchange/services/2006/types">a:ErrorTokenSerializationDenied</faultcode>
<faultstring xml:lang="en-US">The requesting account does not have permission to serialize tokens.</faultstring>
<detail>
<e:ResponseCode xmlns:e="http://schemas.microsoft.com/exchange/services/2006/errors">ErrorTokenSerializationDenied</e:ResponseCode>
<e:Message xmlns:e="http://schemas.microsoft.com/exchange/services/2006/errors">The requesting account does not have permission to serialize tokens.</e:Message>
</detail>
</s:Fault>
</s:Body>
</s:Envelope>
谢谢
解决方案
推荐阅读
- laravel - laravel eloquent 'has' 方法的行为出人意料
- hibernate - 在 springboot 2.2.2.RELEASE 中 IntegrationTest 隔离失败(每次 SpringBootTest 之后的错误掺杂表)
- javascript - 如何在 Vue.js Express 应用中设置路由参数
- c++ - 复制赋值运算符说明
- c++ - 尝试使用 MSVC 从源代码构建 qt 创建器:无法打开包含文件:'stddef.h':没有这样的文件或目录
- javascript - 如何从相同 ID 的不同值中进行选择?
- r - 如何将第一列中的名称与重复行相关联?
- ios - iOS 推送通知以删除已发送的通知
- java - Spring Cloud 配置服务器发送 Spring Security 登录表单而不是 logback.xml
- android - Kotlin ListView 项目点击基于字符串