]> source.dussan.org Git - nextcloud-server.git/commitdiff
make sure that also the storage etag gets changed
authorBjoern Schiessle <schiessle@owncloud.com>
Tue, 29 Oct 2013 15:30:47 +0000 (16:30 +0100)
committerBjoern Schiessle <schiessle@owncloud.com>
Tue, 29 Oct 2013 15:30:47 +0000 (16:30 +0100)
lib/private/files/cache/updater.php

index e711b21e340ca1db6ab0a5057ff7418afec3cc8b..48fb3ba6c5c17888bbb952cec2a10242ac28206d 100644 (file)
@@ -135,10 +135,13 @@ class Updater {
 
                        while ($id !== -1) {
                                $cache->update($id, array('mtime' => $time, 'etag' => $storage->getETag($internalPath)));
-                               $realPath = dirname($realPath);
-                               // check storage for parent in case we change the storage in this step
-                               list($storage, $internalPath) = $view->resolvePath($realPath);
-                               if ($internalPath) {
+                               if ($realPath !== '') {
+                                       $realPath = dirname($realPath);
+                                       if($realPath === '/') {
+                                               $realPath = "";
+                                       }
+                                       // check storage for parent in case we change the storage in this step
+                                       list($storage, $internalPath) = $view->resolvePath($realPath);
                                        $cache = $storage->getCache();
                                        $id = $cache->getId($internalPath);
                                } else {