Discovery: Parse etag to be consistent with RequestEtagJob
authorChristian Kamm <mail@ckamm.de>
Fri, 26 Jul 2019 08:00:19 +0000 (10:00 +0200)
committerKevin Ottens <kevin.ottens@nextcloud.com>
Tue, 15 Dec 2020 09:58:54 +0000 (10:58 +0100)
This avoids unnecessary sync runs.

For #7345

src/libsync/discoveryphase.cpp

index e137316a19b7fc919ddf9bc9a1c27f98eb25f693..233cf16a47214bf72e5fd2f97eec4a35f15ec381 100644 (file)
@@ -355,7 +355,7 @@ void DiscoverySingleDirectoryJob::directoryListingIteratedSlot(QString file, con
     //This works in concerto with the RequestEtagJob and the Folder object to check if the remote folder changed.
     if (map.contains("getetag")) {
         if (_firstEtag.isEmpty()) {
-            _firstEtag = map.value("getetag"); // for directory itself
+            _firstEtag = parseEtag(map.value("getetag").toUtf8()); // for directory itself
         }
     }
 }