- 01 Mar, 2016 1 commit
-
-
Sebastian Kummer authored
Released under the Affero GNU General Public License (AGPL) version 3.
-
- 29 Feb, 2016 4 commits
-
-
Sebastian Kummer authored
Merge pull request #162 in ZP/z-push from bugfix/ZP-847-remove-stream-seek-call-from-wbxmlencoder to develop * commit 'c70f20bd': ZP-847 Remove fseek from encoder as not all stream types support it. Released under the Affero GNU General Public License (AGPL) version 3.
-
Sebastian Kummer authored
Merge pull request #160 in ZP/z-push from feature/ZP-622-ping-should-notify-on-hierarchy-changes to develop * commit 'f3c891be': ZP-778 Remove unused code. ZP-622 Devices performing heartbeat weren't handling changes properly. ZP-622 Update year. ZP-778 Make sure the hierarchy cache is loaded when verifying hierarchy changes in SyncCollections. ZP-777 Verify potential hierarchy changes against a hierarchy hash coming from all foldernames + parent ids. ZP-622 Update year. ZP-771 Indicate changed additional folderdata in DeviceManager->IsHierarchySyncRequired(). ZP-778 Verify received hierarchy notifications for validity. ZP-777 Catch and filter hierarchy events. ZP-622 added HIERARCHYNOTIFICATION constant to the IBackend.
-
Sebastian Kummer authored
Released under the Affero GNU General Public License (AGPL) version 3.
-
Sebastian Kummer authored
Merge pull request #163 in ZP/z-push from bugfix/ZP-846-z-push-admin-fix-states-need-to-fix to develop * commit '259b7136': ZP-846 Go through all devices+user and check if a folderdata state for the hierarchy exists.
-
- 27 Feb, 2016 2 commits
-
-
Sebastian Kummer authored
the hierarchy exists. Released under the Affero GNU General Public License (AGPL) version 3.
-
Vincent Sherwood authored
ZP-847 Remove fseek from encoder as not all stream types support it. Released under the Affero GNU General Public License (AGPL) version 3.
-
- 26 Feb, 2016 5 commits
-
-
Sebastian Kummer authored
Merge pull request #161 in ZP/z-push from bugfix/ZP-848-folderstat-should-not-be-considered to develop * commit 'f0e80cd2': ZP-848 Remove folder stat if an older synckey is sent.
-
Manfred Kutas authored
Released under the Affero GNU General Public License (AGPL) version 3.
-
Sebastian Kummer authored
Released under the Affero GNU General Public License (AGPL) version 3.
-
Sebastian Kummer authored
Released under the Affero GNU General Public License (AGPL) version 3.
-
Sebastian Kummer authored
changes in SyncCollections. Released under the Affero GNU General Public License (AGPL) version 3.
-
- 25 Feb, 2016 2 commits
-
-
Sebastian Kummer authored
coming from all foldernames + parent ids. Released under the Affero GNU General Public License (AGPL) version 3.
-
https://stash.z-hub.io/scm/zp/z-pushSebastian Kummer authored
Merge branch 'develop' of https://stash.z-hub.io/scm/zp/z-push into feature/ZP-622-ping-should-notify-on-hierarchy-changes Conflicts: src/lib/core/synccollections.php
-
- 24 Feb, 2016 1 commit
-
-
Sebastian Kummer authored
Merge pull request #150 in ZP/z-push from bugfix/ZP-641-filestatemachine-backend-storage-file to develop * commit '5c7a4b19': ZP-641 Delete file only if it exists. ZP-641 CleanStates() has to stop after deleting one BS file. ZP-641 call GetState() with the "do not clean" flag, changed CleanStates() to delete exact bs files when being calles without uuid for bs type (needs better fixing in ZP-835).
-
- 23 Feb, 2016 6 commits
-
-
Sebastian Kummer authored
Released under the Affero GNU General Public License (AGPL) version 3.
-
Sebastian Kummer authored
* commit '52162fde': ZP-797 Fixed WBXML class constant. ZP-797 GetAttachment use fpassthru (more efficient). ZP-797 WBXMLDecoder is handling ActiveSync WBXML, which is only a subset of WBXML. ZP-797 WBXML{En,De}coder: use const instead of define for WBXML_* constants. ZP-797 WBXMLDecoder->getOpaque() use stream_get_contents(). ZP-797 WBXMLDecoder->GetPlainInputStream() use stream_get_contents(). ZP-797 WBXMLDecoder->_getToken() speedup. ZP-797 WBXMLDecoder->getTermStr(): use stream_get_line(). ZP-797 WBXMLEncoder remove possible endless loop/improve multipart handling. ZP-797 WBXMLEncoder remove _outlog / use output buffering. ZP-797 WBXMLDecoder remove inlog / reread php://input.
-
Sebastian Kummer authored
Merge pull request #156 in ZP/z-push from bugfix/ZP-794-use-safeputcontents-to-ensure-atomacy-2 to develop * commit 'f34003c0': ZP-794 Remove now useless call to FixFileOwner. ZP-794 Call FixFileOwner in SafePutContents.
-
Sebastian Kummer authored
Merge pull request #157 in ZP/z-push from bugfix/ZP-645-php-5.4-obstart-needs-an-extra-flag-revert to develop * commit '749e44a8': ZP-645 Revert "PHP 5.4+ ob_start() needs an extra flag to allow".
-
Sebastian Kummer authored
Released under the Affero GNU General Public License (AGPL) version 3.
-
Sebastian Kummer authored
Released under the Affero GNU General Public License (AGPL) version 3.
-
- 22 Feb, 2016 13 commits
-
-
Etienne CHAMPETIER authored
Released under the Affero GNU General Public License (AGPL) version 3.
-
Etienne CHAMPETIER authored
Released under the Affero GNU General Public License (AGPL) version 3. let's cleanup and remove some (non working) code for exemple we do not handle attributes see also: http://msdn.microsoft.com/en-us/library/hh475626%28v=exchg.80%29.aspx http://www.w3.org/1999/06/NOTE-wbxml-19990624/ https://android.googlesource.com/platform/packages/apps/Exchange/+/master/src/com/android/exchange/adapter/Parser.java
-
Etienne CHAMPETIER authored
Released under the Affero GNU General Public License (AGPL) version 3. also move them inside WBXMLDefs
-
Etienne CHAMPETIER authored
Released under the Affero GNU General Public License (AGPL) version 3.
-
Etienne CHAMPETIER authored
Released under the Affero GNU General Public License (AGPL) version 3.
-
Etienne CHAMPETIER authored
Released under the Affero GNU General Public License (AGPL) version 3. When importing 1340 contacts on an android, this is called 41437 times. With this small optimisation, we save 0,44s (2,47 -> 2,03)
-
Etienne CHAMPETIER authored
Released under the Affero GNU General Public License (AGPL) version 3. while importing 1340 contacts on an android 4.4, getTermStr was called 12021 times (and getByte 216005 times) This simplify greatly the code and improve performance
-
Etienne CHAMPETIER authored
Released under the Affero GNU General Public License (AGPL) version 3. (if $bp isn't a ressource, !feof($bp) === true ...) check $bp with is_ressource() fclose $bp use stream_copy_to_stream (more efficient)
-
Etienne CHAMPETIER authored
Released under the Affero GNU General Public License (AGPL) version 3. we already buffer 1M of output, so we don't need _outlog, which is an always on debug code
-
php://inputEtienne CHAMPETIER authored
Released under the Affero GNU General Public License (AGPL) version 3. With POST request, we can read multiple times php://input, this permit us to drop "inlog", which is an "always on" debug code (introduced in ZP-608 / bbfe372c) see Notes in http://php.net/manual/en/wrappers.php.php#wrappers.php.input see also http://stackoverflow.com/a/3402343 we keep readRemainingData() as it's used in printwbxml.php here is my test: <?php // tested working version: // 5.6.15/fpm-fcgi (fedora22/php-fpm) // 5.6.5/fpm-fcgi (centos6 php56 scl/php-fpm) // 5.5.21/fpm-fcgi (centos6 php55 scl/php-fpm) // 5.3.29/fpm-fcgi (centos6 php53 ius/php-fpm) // 5.4.45-0+deb7u2/apache2handler // 5.3.28/apache2handler (rhel6 php53 ius/apache) if ($_SERVER['REQUEST_METHOD'] !== 'POST') { echo 'not a post request!'; echo '<br>'.PHP_EOL; echo 'curl --data "test POST" http://<server>/test-multi-read-input.php'; echo PHP_EOL; exit(); } function readinput($close = true) { $input = fopen('php://input', 'r'); $content = stream_get_contents($input); if ($close) fclose($input); return $content; } echo "Reading multiple time php://input "; if (readinput() === readinput() && readinput(false) === readinput(false)) { echo "WORKS \o/"; } else { echo "DOESN'T WORK :("; } echo PHP_EOL; echo 'Version: '.PHP_VERSION.'/'.PHP_SAPI; echo PHP_EOL; echo PHP_EOL; echo "Input was: ".readinput(); echo PHP_EOL;
-
Etienne CHAMPETIER authored
Released under the Affero GNU General Public License (AGPL) version 3. This reverts commit 074cc4b9. extra flag is not needed as it's the default value
-
Etienne CHAMPETIER authored
Released under the Affero GNU General Public License (AGPL) version 3. SafePutContents now takes care of the FixFileOwner call. Signed-off-by:Etienne CHAMPETIER <champetier.etienne@gmail.com>
-
Etienne CHAMPETIER authored
Released under the Affero GNU General Public License (AGPL) version 3. This prevents ownership/rights problem when running as root Signed-off-by:Etienne CHAMPETIER <champetier.etienne@gmail.com>
-
- 18 Feb, 2016 6 commits
-
-
Sebastian Kummer authored
Merge pull request #153 in ZP/z-push from bugfix/ZP-839-z-push-top-writes-over-several-lines to develop * commit 'a363aa08': ZP-839 Get collection count from SyncCollections, show 'no changes' only if nothing was queued (e.g. new exporter registered), fixed typo showing exceptions. ZP-839 One line z-push-top announcement for multi-folder sync.
-
https://stash.z-hub.io/scm/zp/z-pushSebastian Kummer authored
Merge branch 'develop' of https://stash.z-hub.io/scm/zp/z-push into bugfix/ZP-839-z-push-top-writes-over-several-lines Conflicts: src/lib/request/sync.php
-
Sebastian Kummer authored
Merge pull request #154 in ZP/z-push from bugfix/ZP-840-ping-loop-if-exporter-state-is-not to develop * commit 'a1541482': ZP-840 Rename exception variable. ZP-840 Renamed exception variable. ZP-840 Catch StateInvalidException when in partial mode. ZP-840 Do not throw StateNotFoundException as this messes up Ping. Just treat it as StateInvalid (which is true, FD indicates a state that is not available), do not catch both types in Ping as only StateInvalidException will be thrown.
-
Sebastian Kummer authored
Released under the Affero GNU General Public License (AGPL) version 3.
-
Sebastian Kummer authored
Released under the Affero GNU General Public License (AGPL) version 3.
-
Sebastian Kummer authored
* commit '0bddbc9b': ZP-832 Do comparing only if the folder already has a folder stat, but still get the newFolderStat even if the folder has none yet.
-