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
This commit is contained in:
mguessan 2013-04-04 22:46:55 +00:00
parent 991399c7fb
commit 94b10b3fda
1 changed files with 1 additions and 1 deletions

View File

@ -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));