summaryrefslogtreecommitdiffstats
path: root/lib/private/Preview/Storage/Root.php
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2020-07-30 23:53:54 +0200
committerMorris Jobke <hey@morrisjobke.de>2020-08-06 22:19:21 +0200
commit159f28cd521e94eff23e32b5bf3f4d2447da403f (patch)
tree7b15b649aff007c85a1a2e45be3d801b3441cbfa /lib/private/Preview/Storage/Root.php
parent438ac23e2a3564fbce50e862336db56bbf0d747c (diff)
downloadnextcloud-server-159f28cd521e94eff23e32b5bf3f4d2447da403f.tar.gz
nextcloud-server-159f28cd521e94eff23e32b5bf3f4d2447da403f.zip
Mount the old previews in a separate folder for the multi bucket setup and check in them before using the actual locations
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib/private/Preview/Storage/Root.php')
-rw-r--r--lib/private/Preview/Storage/Root.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/private/Preview/Storage/Root.php b/lib/private/Preview/Storage/Root.php
index 107d87c6301..37ae1758121 100644
--- a/lib/private/Preview/Storage/Root.php
+++ b/lib/private/Preview/Storage/Root.php
@@ -41,6 +41,17 @@ class Root extends AppData {
$internalFolder = $this->getInternalFolder($name);
try {
+ return parent::getFolder('old-multibucket/' . $internalFolder);
+ } catch (NotFoundException $e) {
+ // not in multibucket fallback #1
+ }
+ try {
+ return parent::getFolder('old-multibucket/' . $name);
+ } catch (NotFoundException $e) {
+ // not in multibucket fallback #2
+ }
+
+ try {
return parent::getFolder($internalFolder);
} catch (NotFoundException $e) {
/*