Commit eb7f48ba authored by Sebastian Kummer's avatar Sebastian Kummer

ZP-784 Consider all StatusException with SYNC_MOVEITEMSTATUS_SUCCESS a

SYNC_STATUS_SUCCESS and rewrite all other codes to
SYNC_STATUS_OBJECTNOTFOUND.

Released under the Affero GNU General Public License (AGPL) version 3.
parent d8e7289b
......@@ -1262,8 +1262,8 @@ class Sync extends RequestProcessor {
$folderid = self::$backend->GetWasteBasket();
if($folderid) {
$this->importer->ImportMessageMove($serverid, $folderid);
$actiondata["statusids"][$serverid] = SYNC_STATUS_SUCCESS;
$this->importer->ImportMessageMove($serverid, $folderid);
break;
}
else
......@@ -1275,7 +1275,9 @@ class Sync extends RequestProcessor {
}
}
catch (StatusException $stex) {
$actiondata["statusids"][$serverid] = $stex->getCode();
if($stex->getCode() != SYNC_MOVEITEMSSTATUS_SUCCESS) {
$actiondata["statusids"][$serverid] = SYNC_STATUS_OBJECTNOTFOUND;
}
}
break;
}
......
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