From 94b10b3fda0d78f6d5b28423a822c72e16b31b8f Mon Sep 17 00:00:00 2001 From: mguessan Date: Thu, 4 Apr 2013 22:46:55 +0000 Subject: [PATCH] EWS: workaround for Nokia N9 Caldav implementation bug git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@2078 3d1905a2-6b24-0410-a738-b14d5a86fcbd --- src/java/davmail/exchange/ews/EwsExchangeSession.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/java/davmail/exchange/ews/EwsExchangeSession.java b/src/java/davmail/exchange/ews/EwsExchangeSession.java index 38f6404f..390155bf 100644 --- a/src/java/davmail/exchange/ews/EwsExchangeSession.java +++ b/src/java/davmail/exchange/ews/EwsExchangeSession.java @@ -1860,7 +1860,7 @@ public class EwsExchangeSession extends ExchangeSession { String urlcompname = convertItemNameToEML(itemName); // workaround for missing urlcompname in Exchange 2010 if (isItemId(urlcompname)) { - ItemId itemId = new ItemId(StringUtil.urlToBase64(urlcompname.substring(0, itemName.length() - 4))); + ItemId itemId = new ItemId(StringUtil.urlToBase64(urlcompname.substring(0, urlcompname.indexOf('.')))); GetItemMethod getItemMethod = new GetItemMethod(BaseShape.ID_ONLY, itemId, false); for (String attribute : EVENT_REQUEST_PROPERTIES) { getItemMethod.addAdditionalProperty(Field.get(attribute));