From 7980ddaa29258dbdb6964714cf2e9e7d6a63e5d7 Mon Sep 17 00:00:00 2001 From: Ludovic Marcotte Date: Thu, 26 Feb 2015 17:48:06 -0500 Subject: [PATCH] fixed empty sync responses for EAS 2.5 and 12.0 clients - patch from tfu --- ActiveSync/SOGoActiveSyncDispatcher+Sync.m | 5 +++-- NEWS | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ActiveSync/SOGoActiveSyncDispatcher+Sync.m b/ActiveSync/SOGoActiveSyncDispatcher+Sync.m index 2c353f736..29cc0d1a0 100644 --- a/ActiveSync/SOGoActiveSyncDispatcher+Sync.m +++ b/ActiveSync/SOGoActiveSyncDispatcher+Sync.m @@ -1431,8 +1431,9 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. } } - // Only send a response if there are changes otherwise send an empty response. - if (changeDetected) + + // Only send a response if there are changes or MS-ASProtocolVersion is either 2.5 or 12.0 oterwise send an empty response. + if (changeDetected || [[[context request] headerForKey: @"MS-ASProtocolVersion"] isEqualToString: @"2.5"] || [[[context request] headerForKey: @"MS-ASProtocolVersion"] isEqualToString: @"12.0"]) { // We always return the last generated response. // If we only return , diff --git a/NEWS b/NEWS index 54e2f7639..d3fd5c1df 100644 --- a/NEWS +++ b/NEWS @@ -5,6 +5,7 @@ Bug fixes - fixed login issue after password change (#2601) - fixed potential encoding issue using EAS and 8-bit mails (#3116) - multiple collections support for GetItemEstimate using EAS + - fixed empty sync responses for EAS 2.5 and 12.0 clients 2.2.16 (2015-02-12) -------------------