Commit ed53a7d5 authored by Sebastian Kummer's avatar Sebastian Kummer

ZP-1249 Answer with SYNC_STATUS_SYNCREQUESTINCOMPLETE if an empty sync

request results in an empty response.

Released under the Affero GNU General Public License (AGPL) version 3.
parent 774744c6
......@@ -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