Projects
Kolab:16:Testing
kolab-syncroton
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 65
View file
kolab-syncroton.spec
Changed
@@ -43,7 +43,7 @@ %global upstream_version 2.4.2 Name: kolab-syncroton -Version: 2.4.2.37 +Version: 2.4.2.38 Release: 1%{?dist} Summary: ActiveSync for Kolab Groupware
View file
debian.changelog
Changed
@@ -1,4 +1,4 @@ -kolab-syncroton (2.4.2.37-0~kolab1) unstable; urgency=low +kolab-syncroton (2.4.2.38-0~kolab1) unstable; urgency=low * Release version 2.4.2
View file
kolab-syncroton-2.4.2.tar.gz/lib/ext/Syncroton/Backend/Folder.php
Changed
@@ -86,6 +86,11 @@ $this->_db->delete($this->_tablePrefix . $this->_tableName, $where); } + public function exists($deviceid, $folderid) + { + return false; // not implemented + } + /** * (non-PHPdoc) * @see Syncroton_Backend_IFolder::hasHierarchyChanges() @@ -134,9 +139,4 @@ return parent::_toCamelCase($string, $ucFirst); } } - - public function exists($deviceid, $folderid); - { - return false; // not implemented - } }
View file
kolab-syncroton-2.4.2.tar.gz/lib/kolab_sync_data_email.php
Changed
@@ -1132,14 +1132,14 @@ */ public function getFileReference($fileReference) { - $folderid, $uid, $part_id = explode('::', $fileReference); - $message = $this->getObject($fileReference); if (!$message) { throw new Syncroton_Exception_NotFound("Message $fileReference not found"); } + $folderid, $uid, $part_id = explode('::', $fileReference); + $part = $message->mime_parts$part_id; $body = $message->get_part_body($part_id);
View file
kolab-syncroton-2.4.2.tar.gz/lib/kolab_sync_storage.php
Changed
@@ -1941,11 +1941,15 @@ // Protect against inserting the same values twice (this code can be executed twice in the same request) if (!isset($this->relations$folderid$synctime)) { - $rcube = rcube::get_instance(); - $db = $rcube->get_dbh(); + $rcube = rcube::get_instance(); + $db = $rcube->get_dbh(); $this->relations$folderid$synctime = $relations; $data = gzdeflate(json_encode($relations)); + if ($data === false) { + throw new Exception("Failed to compress relation data"); + } + $result = $db->insert_or_update( 'syncroton_relations_state', 'device_id' => $device_key, 'folder_id' => $folderid, 'synctime' => $synctime, @@ -1966,13 +1970,14 @@ { $synctime = $synctime->format('Y-m-d H:i:s'); - //If we had a collision before + // If we had a collision before if (isset($this->relations$folderid$synctime . "-1")) { return $this->relations$folderid$synctime . "-1"; } + if (!isset($this->relations$folderid$synctime)) { $rcube = rcube::get_instance(); - $db = $rcube->get_dbh(); + $db = $rcube->get_dbh(); $db->limitquery( "SELECT `data`, `synctime` FROM `syncroton_relations_state`" @@ -1984,6 +1989,7 @@ $folderid, $synctime ); + $row = $db->fetch_assoc(); if (!$row) { // Only if we don't have a timestamp that is older than synctime do we return the next best. @@ -2008,9 +2014,10 @@ // Note: We use the 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. $data = $row'data'; - $inflated = gzinflate($data); - // Inflation may fail for backward compatiblity - $data = $inflated ? $inflated : $data; + // Support data in both compressed and uncompressed format + if (strlen($data) && $data0 != '{' && $data0 != '') { + $data = gzinflate($data); + } $this->relations$folderid$synctime = json_decode($data, true); // Cleanup: remove all records older than the current one.
View file
kolab-syncroton.dsc
Changed
@@ -2,7 +2,7 @@ Source: kolab-syncroton Binary: kolab-syncroton Architecture: all -Version: 1:2.4.2.37-1~kolab1 +Version: 1:2.4.2.38-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
.