fixed empty sync responses for EAS 2.5 and 12.0 clients - patch from tfu

pull/65/merge
Ludovic Marcotte 2015-02-26 17:48:06 -05:00
parent 9160e34134
commit 33c485d2f6
2 changed files with 4 additions and 2 deletions

View File

@ -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 <Sync><Collections/></Sync>,

1
NEWS
View File

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