ZLog::Write(LOGLEVEL_ERROR,sprintf("ASDevice->AddAdditionalFolder(): folder can not be added because the specified type '%s' is not a permitted user type.",$type));
ZLog::Write(LOGLEVEL_ERROR,sprintf("ASDevice->AddAdditionalFolder(): folder can not be added because the specified type '%s' is not a permitted user type.",$type));
returnfalse;
returnfalse;
}
}
...
@@ -1049,7 +1049,7 @@ class ASDevice extends StateObject {
...
@@ -1049,7 +1049,7 @@ class ASDevice extends StateObject {
// transform our array in a key/value array where folderids are keys and do some basic checks
// transform our array in a key/value array where folderids are keys and do some basic checks
ZLog::Write(LOGLEVEL_DEBUG,sprintf("ChangesMemoryWrapper->ImportFolderChange(): Change for folder '%s' will not be sent as modification is not relevant.",$folder->displayname));
ZLog::Write(LOGLEVEL_DEBUG,sprintf("ChangesMemoryWrapper->ImportFolderChange(): Change for folder '%s' will not be sent as modification is not relevant.",$folder->displayname));
ZLog::Write(LOGLEVEL_DEBUG,"SyncCollections->AddCollection(): Prioritizing KOE GAB folder for synchronization");
}
else{
$this->collections[$spa->GetFolderId()]=$spa;
}
ZLog::Write(LOGLEVEL_DEBUG,sprintf("SyncCollections->AddCollection(): Folder id '%s' : ref. PolicyKey '%s', ref. Lifetime '%s', last sync at '%s'",$spa->GetFolderId(),$spa->GetReferencePolicyKey(),$spa->GetReferenceLifetime(),$spa->GetLastSyncTime()));
ZLog::Write(LOGLEVEL_DEBUG,sprintf("SyncCollections->AddCollection(): Folder id '%s' : ref. PolicyKey '%s', ref. Lifetime '%s', last sync at '%s'",$spa->GetFolderId(),$spa->GetReferencePolicyKey(),$spa->GetReferenceLifetime(),$spa->GetLastSyncTime()));
thrownewStatusException(sprintf("HandleFolderChange() could not Setup() the backend for folder id '%s'",(($parentBackendId!=false)?$parentBackendId:$backendid)),SYNC_FSSTATUS_SERVERERROR);
thrownewStatusException(sprintf("HandleFolderChange() could not Setup() the backend for folder id '%s'",(($parentBackendId!=false)?$parentBackendId:$backendid)),SYNC_FSSTATUS_SERVERERROR);
@@ -131,9 +133,16 @@ abstract class SyncObject extends Streamer {
...
@@ -131,9 +133,16 @@ abstract class SyncObject extends Streamer {
}
}
else{
else{
if(isset($this->$val)&&isset($odo->$val)){
if(isset($this->$val)&&isset($odo->$val)){
if($this->$val!==$odo->$val){
if($strictTypeCompare){
ZLog::Write(LOGLEVEL_DEBUG,sprintf("SyncObject->equals() false on field '%s': '%s' != '%s'",$val,Utils::PrintAsString($this->$val),Utils::PrintAsString($odo->$val)));
if($this->$val!==$odo->$val){
returnfalse;
ZLog::Write(LOGLEVEL_DEBUG,sprintf("SyncObject->equals() false on field '%s': '%s' != '%s' using strictTypeCompare",$val,Utils::PrintAsString($this->$val),Utils::PrintAsString($odo->$val)));
returnfalse;
}
}else{
if($this->$val!=$odo->$val){
ZLog::Write(LOGLEVEL_DEBUG,sprintf("SyncObject->equals() false on field '%s': '%s' != '%s'",$val,Utils::PrintAsString($this->$val),Utils::PrintAsString($odo->$val)));