1
0
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:
mguessan 2010-07-27 17:12:44 +00:00
parent da4468ec50
commit 47f2536a05

View File

@ -846,11 +846,10 @@ public class EwsExchangeSession extends ExchangeSession {
String urlcompname = convertItemNameToEML(itemName); String urlcompname = convertItemNameToEML(itemName);
String currentEtag = null; String currentEtag = null;
ItemId currentItemId = null; ItemId currentItemId = null;
List<EWSMethod.Item> responses = searchItems(folderPath, EVENT_REQUEST_PROPERTIES, EwsExchangeSession.this.isEqualTo("urlcompname", urlcompname), FolderQueryTraversal.SHALLOW); EWSMethod.Item currentItem = getEwsItem(folderPath, itemName);
if (!responses.isEmpty()) { if (currentItem != null) {
EWSMethod.Item response = responses.get(0); currentItemId = new ItemId(currentItem);
currentItemId = new ItemId(response); currentEtag = currentItem.get(Field.get("etag").getResponseName());
currentEtag = response.get(Field.get("etag").getResponseName());
} }
if ("*".equals(noneMatch)) { if ("*".equals(noneMatch)) {
// create requested // create requested