Commit 341d1f01 authored by Sebastian Kummer's avatar Sebastian Kummer

Merge pull request #557 in ZP/z-push from...

Merge pull request #557 in ZP/z-push from bugfix/ZP-1249-wp-8.1-empty-sync-empty-response to develop

* commit 'ed53a7d5':
  ZP-1249 Answer with SYNC_STATUS_SYNCREQUESTINCOMPLETE if an empty sync request results in an empty response.
parents 774744c6 ed53a7d5
......@@ -913,6 +913,14 @@ class Sync extends RequestProcessor {
if ($this->startFolderTagSent)
self::$encoder->endTag();
// Check if there was any response - in case of an empty sync request, we shouldn't send an empty answer (ZP-1241)
if (!$this->startTagsSent && $emptysync === true) {
$this->sendStartTags();
self::$encoder->startTag(SYNC_STATUS);
self::$encoder->content(SYNC_STATUS_SYNCREQUESTINCOMPLETE);
self::$encoder->endTag();
}
//SYNC_SYNCHRONIZE - only if the starttag was sent
if ($this->startTagsSent)
self::$encoder->endTag();
......
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