[Pkg-owncloud-commits] [owncloud-client] 21/69: SyncEngine: Handle 503 condition as soft error to properly handle etags.

Sandro Knauß hefee-guest at moszumanska.debian.org
Fri Nov 7 19:41:07 UTC 2014


This is an automated email from the git hooks/post-receive script.

hefee-guest pushed a commit to branch master
in repository owncloud-client.

commit 105ff694f250b19ae1515c04b60aa2b722cd3047
Author: Klaas Freitag <freitag at owncloud.com>
Date:   Tue Oct 28 17:13:21 2014 +0100

    SyncEngine: Handle 503 condition as soft error to properly handle etags.
    
    Otherwise the ETags could be removed from the db and cause file
    deletes.
---
 src/mirall/syncengine.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/mirall/syncengine.cpp b/src/mirall/syncengine.cpp
index e93e6eb..43e4a7a 100644
--- a/src/mirall/syncengine.cpp
+++ b/src/mirall/syncengine.cpp
@@ -374,6 +374,7 @@ int SyncEngine::treewalkFile( TREE_WALK_FILE *file, bool remote )
         break;
     case CSYNC_STATUS_SERVICE_UNAVAILABLE:
         item._errorString = QLatin1String("Directory temporarily not available on server.");
+        item._status = SyncFileItem::SoftError;
         break;
     default:
         Q_ASSERT("Non handled error-status");

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git



More information about the Pkg-owncloud-commits mailing list