Commit 2679fd17 authored by Mickaël Guessant's avatar Mickaël Guessant

Caldav: fix regression, busy status is case sensitive in EWS

git-svn-id: https://svn.code.sf.net/p/davmail/code/trunk@2498 3d1905a2-6b24-0410-a738-b14d5a86fcbd
parent 9f53931b
......@@ -1732,8 +1732,9 @@ public class EwsExchangeSession extends ExchangeSession {
// this is a tentative event
updates.add(Field.createFieldUpdate("busystatus", "Tentative"));
} else {
// otherwise, we simply use the same value as before, as received from the server
updates.add(Field.createFieldUpdate("busystatus", vCalendar.getFirstVeventPropertyValue("X-MICROSOFT-CDO-BUSYSTATUS")));
// otherwise, we use the same value as before, as received from the server
// however, the case matters, so we still have to transform it "BUSY" -> "Busy"
updates.add(Field.createFieldUpdate("busystatus", "BUSY".equals(vCalendar.getFirstVeventPropertyValue("X-MICROSOFT-CDO-BUSYSTATUS"))?"Busy" : "Free"));
}
if ("Exchange2007_SP1".equals(serverVersion) && vCalendar.isCdoAllDay()) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment