Projects
Kolab:16
kolab-syncroton
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 66
View file
kolab-syncroton.spec
Changed
@@ -37,7 +37,7 @@ %global upstream_version 2.4.2 Name: kolab-syncroton -Version: 2.4.2.21 +Version: 2.4.2.24 Release: 1%{?dist} Summary: ActiveSync for Kolab Groupware
View file
debian.changelog
Changed
@@ -1,4 +1,4 @@ -kolab-syncroton (2.4.2.21-0~kolab1) unstable; urgency=low +kolab-syncroton (2.4.2.24-0~kolab1) unstable; urgency=low * Release version 2.4.2
View file
kolab-syncroton-2.4.2.tar.gz/lib/ext/Syncroton/Command/Sync.php
Changed
@@ -670,7 +670,7 @@ if(is_array($collectionData->syncState->pendingdata)) { $serverModifications = $collectionData->syncState->pendingdata; if ($this->_logger instanceof Zend_Log) { - $this->_logger->info(__METHOD__ . '::' . __LINE__ . " restored from sync state: (added/changed/deleted) " . count($serverModifications'added') . '/' . count($serverModifications'changed') . '/' . count($serverModifications'deleted') . ' entries for sync from server to client'); + $this->_logger->info(__METHOD__ . '::' . __LINE__ . " restored from sync state: (added/changed/deleted) " . count($serverModifications'added') . '/' . count($serverModifications'changed') . '/' . count($serverModifications'deleted') . ' entries for sync from server to client'); } } else { try { @@ -796,7 +796,7 @@ if ($this->_logger instanceof Zend_Log) { $this->_logger->info(__METHOD__ . '::' . __LINE__ . " Processing collection " . $collectionData->collectionId); } - + // send reponse for newly added entries if(!empty($clientModifications'added')) { foreach($clientModifications'added' as $entryData) {
View file
kolab-syncroton-2.4.2.tar.gz/lib/kolab_sync_data.php
Changed
@@ -712,7 +712,7 @@ // Or (faster) strict UID matching... $object = $this->backend->getItem($fid, $this->device->deviceid, $this->modelName, $uid); - if (!empty($object) && ($crc === null || $crc == $this->objectCRC($object'uid', $fid))) { + if (!empty($object) && ($crc === null || $crc == $this->objectCRC($uid, $fid))) { $object'folderId' = $fid; return $object; }
View file
kolab-syncroton-2.4.2.tar.gz/lib/kolab_sync_data_calendar.php
Changed
@@ -190,7 +190,7 @@ public function getEntry(Syncroton_Model_SyncCollection $collection, $serverId, $as_array = false) { $event = is_array($serverId) ? $serverId : $this->getObject($collection->collectionId, $serverId); - $config = $this->getFolderConfig($event'folderId'); + $config = !empty($event'folderId') ? $this->getFolderConfig($event'folderId') : ; $result = ; $is_outlook = stripos($this->device->devicetype, 'outlook') !== false; @@ -1328,14 +1328,14 @@ $rec = (array) $event'recurrence'; // Add BYDAY if not exists - if ($rec'FREQ' == 'WEEKLY' && empty($rec'BYDAY')) { + if (($rec'FREQ' ?? '') == 'WEEKLY' && empty($rec'BYDAY')) { $days = 'SU', 'MO', 'TU', 'WE', 'TH', 'FR', 'SA'; $day = $event'start'->format('w'); $rec'BYDAY' = $days$day; } - if (!$rec'INTERVAL') { + if (empty($rec'INTERVAL')) { $rec'INTERVAL' = 1; }
View file
kolab-syncroton-2.4.2.tar.gz/lib/kolab_sync_message.php
Changed
@@ -495,5 +495,4 @@ } } } - }
View file
kolab-syncroton-2.4.2.tar.gz/lib/kolab_sync_storage.php
Changed
@@ -1937,6 +1937,7 @@ $synctime, $data ); + if ($err = $db->is_error($result)) { throw new Exception("Failed to save relation: {$err}"); } @@ -1968,19 +1969,21 @@ ); if ($row = $db->fetch_assoc()) { - $synctime = $row'synctime'; - // @TODO: make sure synctime from sql is in "Y-m-d H:i:s" format + // Don't use $row'synctime' for the internal cache. + // The synctime of the found row is usually earlier than the requested synctime. + // Note: We use internal cache because there's a call to both hasChanges() and + // getChangedEntries() in Sync. It's needed until we add some caching on a higher level. $this->relations$folderid$synctime = json_decode($row'data', true); - } - // Cleanup: remove all records except the current one - $db->query( - "DELETE FROM `syncroton_relations_state`" - . " WHERE `device_id` = ? AND `folder_id` = ? AND `synctime` <> ?", - $device_key, - $folderid, - $synctime - ); + // Cleanup: remove all records except the current one + $db->query( + "DELETE FROM `syncroton_relations_state`" + . " WHERE `device_id` = ? AND `folder_id` = ? AND `synctime` <> ?", + $device_key, + $folderid, + $row'synctime', + ); + } } return $this->relations$folderid$synctime ?? null;
View file
kolab-syncroton-2.4.2.tar.gz/lib/kolab_sync_timezone_converter.php
Changed
@@ -633,7 +633,7 @@ $transitions = $_timezone->getTransitions($start, $end); if ($transitions === false) { - return ; + return null, null; } foreach ($transitions as $index => $transition) {
View file
kolab-syncroton.dsc
Changed
@@ -2,7 +2,7 @@ Source: kolab-syncroton Binary: kolab-syncroton Architecture: all -Version: 1:2.4.2.21-1~kolab1 +Version: 1:2.4.2.24-1~kolab1 Maintainer: Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> Uploaders: Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> Homepage: http://www.kolab.org/
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.