mirror of
https://github.com/moparisthebest/davmail
synced 2024-12-13 19:22:22 -05:00
EWS: Apply workaround to events
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1302 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
da4468ec50
commit
47f2536a05
@ -846,11 +846,10 @@ public class EwsExchangeSession extends ExchangeSession {
|
||||
String urlcompname = convertItemNameToEML(itemName);
|
||||
String currentEtag = null;
|
||||
ItemId currentItemId = null;
|
||||
List<EWSMethod.Item> responses = searchItems(folderPath, EVENT_REQUEST_PROPERTIES, EwsExchangeSession.this.isEqualTo("urlcompname", urlcompname), FolderQueryTraversal.SHALLOW);
|
||||
if (!responses.isEmpty()) {
|
||||
EWSMethod.Item response = responses.get(0);
|
||||
currentItemId = new ItemId(response);
|
||||
currentEtag = response.get(Field.get("etag").getResponseName());
|
||||
EWSMethod.Item currentItem = getEwsItem(folderPath, itemName);
|
||||
if (currentItem != null) {
|
||||
currentItemId = new ItemId(currentItem);
|
||||
currentEtag = currentItem.get(Field.get("etag").getResponseName());
|
||||
}
|
||||
if ("*".equals(noneMatch)) {
|
||||
// create requested
|
||||
|
Loading…
Reference in New Issue
Block a user