Projects
Kolab:16
kolab-syncroton
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 34
View file
kolab-syncroton.spec
Changed
@@ -36,7 +36,7 @@ %global _ap_sysconfdir %{_sysconfdir}/%{httpd_name} Name: kolab-syncroton -Version: 2.3.16 +Version: 2.3.17 Release: 1%{?dist} Summary: ActiveSync for Kolab Groupware @@ -203,6 +203,9 @@ %attr(0770,%{httpd_user},%{httpd_group}) %{_var}/log/%{name} %changelog +* Mon May 4 2020 Christian Mollekopf <mollekopf@kolabsys.com> - 2.3.17-1 +- Release version 2.3.17 + * Wed Dec 4 2019 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 2.3.16-1 - Release version 2.3.16
View file
debian.changelog
Changed
@@ -1,3 +1,9 @@ +kolab-syncroton (2.3.17-0~kolab1) unstable; urgency=low + + * Release version 2.3.17 + + -- Christian Mollekopf <mollekopf@kolabsys.com> Mon, 4 May 2020 15:13:40 +0200 + kolab-syncroton (2.3.16-0~kolab2) unstable; urgency=low * Release version 2.3.16
View file
kolab-syncroton-2.3.16.tar.gz/lib/ext/Syncroton/Command/SendMail.php -> kolab-syncroton-2.3.17.tar.gz/lib/ext/Syncroton/Command/SendMail.php
Changed
@@ -32,7 +32,8 @@ */ public function handle() { - if (!empty($this->_requestParameters['contentType']) && $this->_requestParameters['contentType'] == 'message/rfc822') { + if (isset($this->_requestParameters['contentType']) && + $this->_requestParameters['contentType'] === 'message/rfc822') { $this->_mime = $this->_requestBody; $this->_saveInSent = $this->_requestParameters['saveInSent']; $this->_replaceMime = false;
View file
kolab-syncroton-2.3.16.tar.gz/lib/ext/Syncroton/Command/Sync.php -> kolab-syncroton-2.3.17.tar.gz/lib/ext/Syncroton/Command/Sync.php
Changed
@@ -833,7 +833,7 @@ if ($this->_logger instanceof Zend_Log) $this->_logger->warn(__METHOD__ . '::' . __LINE__ . " memory exhausted for entry: " . $serverId); - continue; + break; } catch (Exception $e) { if ($this->_logger instanceof Zend_Log) @@ -881,7 +881,7 @@ if ($this->_logger instanceof Zend_Log) $this->_logger->warn(__METHOD__ . '::' . __LINE__ . " memory exhausted for entry: " . $serverId); - continue; + break; } catch (Exception $e) { if ($this->_logger instanceof Zend_Log)
View file
kolab-syncroton-2.3.16.tar.gz/lib/ext/Syncroton/Command/Wbxml.php -> kolab-syncroton-2.3.17.tar.gz/lib/ext/Syncroton/Command/Wbxml.php
Changed
@@ -181,12 +181,12 @@ $policy = $this->_policyBackend->get($this->_device->policyId); if((int)$policy->policyKey != (int)$this->_policyKey) { - $this->_outputDom->documentElement->appendChild($this->_outputDom->createElementNS($this->_defaultNameSpace, 'Status', 142)); - - $sepn = new Syncroton_Exception_ProvisioningNeeded(); - $sepn->domDocument = $this->_outputDom; - - throw $sepn; + $this->_outputDom->documentElement->appendChild($this->_outputDom->createElementNS($this->_defaultNameSpace, 'Status', 142)); + + $sepn = new Syncroton_Exception_ProvisioningNeeded(); + $sepn->domDocument = $this->_outputDom; + + throw $sepn; } // should we wipe the mobile phone?
View file
kolab-syncroton-2.3.16.tar.gz/lib/ext/Syncroton/Registry.php -> kolab-syncroton-2.3.17.tar.gz/lib/ext/Syncroton/Registry.php
Changed
@@ -517,16 +517,4 @@ { parent::__construct($array, $flags); } - - /** - * @param string $index - * @returns mixed - * - * Workaround for http://bugs.php.net/bug.php?id=40442 (ZF-960). - */ - public function offsetExists($index) - { - return array_key_exists($index, $this); - } - }
View file
kolab-syncroton-2.3.16.tar.gz/lib/ext/Syncroton/Server.php -> kolab-syncroton-2.3.17.tar.gz/lib/ext/Syncroton/Server.php
Changed
@@ -254,10 +254,13 @@ { $loops = 0; - $tempStream = fopen('php://temp/maxmemory:5242880', 'r+'); - + $tempStream = tmpfile(); + + $meta_data = stream_get_meta_data($tempStream); + $filename = $meta_data["uri"]; + $dom->formatOutput = true; - fwrite($tempStream, $dom->saveXML()); + $dom->save($filename); $dom->formatOutput = false; rewind($tempStream);
View file
kolab-syncroton-2.3.16.tar.gz/lib/ext/Syncroton/Wbxml/Encoder.php -> kolab-syncroton-2.3.17.tar.gz/lib/ext/Syncroton/Wbxml/Encoder.php
Changed
@@ -151,8 +151,11 @@ { $_dom->formatOutput = false; - $tempStream = fopen('php://temp/maxmemory:5242880', 'r+'); - fwrite($tempStream, $_dom->saveXML()); + $tempStream = tmpfile(); + + $meta_data = stream_get_meta_data($tempStream); + $filename = $meta_data["uri"]; + $_dom->save($filename); rewind($tempStream); $this->_initialize($_dom);
View file
kolab-syncroton-2.3.16.tar.gz/lib/kolab_sync.php -> kolab-syncroton-2.3.17.tar.gz/lib/kolab_sync.php
Changed
@@ -46,7 +46,7 @@ public $password; const CHARSET = 'UTF-8'; - const VERSION = "2.3.16"; + const VERSION = "2.3.17"; /**
View file
kolab-syncroton-2.3.16.tar.gz/lib/kolab_sync_data_email.php -> kolab-syncroton-2.3.17.tar.gz/lib/kolab_sync_data_email.php
Changed
@@ -50,6 +50,8 @@ 'to' => 'to', ); + static $memory_accumulated = 0; + /** * Special folder type/name map * @@ -288,6 +290,7 @@ else if ($airSyncBaseType == Syncroton_Command_Sync::BODY_TYPE_MIME) { // Check if we have enough memory to handle the message $messageBody = $this->message_mem_check($message, $headers->size); + static::$memory_accumulated += $headers->size; if (empty($messageBody)) { $messageBody = $this->storage->get_raw_body($message->uid); @@ -1661,6 +1664,14 @@ } } + + private function mem_check($need) + { + $mem_limit = parse_bytes(ini_get('memory_limit')); + $memory = static::$memory_accumulated; + return $mem_limit > 0 && $memory + $need > $mem_limit ? false : true; + } + /** * Checks if the message can be processed, depending on its size and * memory_limit, otherwise throws an exception or returns fake body. @@ -1675,7 +1686,7 @@ // as streams). It also happens when parsing the plain/html text body // in getMessagePartBody() though the footprint there is probably lower. - if (!rcube_utils::mem_check($size * 5)) { + if (!$this->mem_check($size * 5)) { // If we already rised the memory we throw an exception, so the message // will be synchronized in the next run (then we might have enough memory) if ($memory_rised) { @@ -1693,7 +1704,7 @@ if (ini_set('memory_limit', $memory_needed) !== false) { // Memory has been rised, check again - if (rcube_utils::mem_check($size * 5)) { + if ($this->mem_check($size * 5)) { return; } }
View file
kolab-syncroton.dsc
Changed
@@ -2,7 +2,7 @@ Source: kolab-syncroton Binary: kolab-syncroton Architecture: all -Version: 2.3.16-0~kolab2 +Version: 2.3.17-0~kolab1 Maintainer: Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> Uploaders: Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> Homepage: http://www.kolab.org/ @@ -12,5 +12,5 @@ Package-List: kolab-syncroton deb utils extra Files: - 00000000000000000000000000000000 0 kolab-syncroton-2.3.16.tar.gz + 00000000000000000000000000000000 0 kolab-syncroton-2.3.17.tar.gz 00000000000000000000000000000000 0 debian.tar.gz
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
.