mirror of
https://github.com/nextcloud/server.git
synced 2026-02-20 00:12:30 -05:00
fix: don't do same-storage move optimization with encryption wrappers
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
22e2419b28
commit
0bc478de2c
1 changed files with 5 additions and 1 deletions
|
|
@ -16,6 +16,7 @@ use OC\Files\Cache\Watcher;
|
|||
use OC\Files\FilenameValidator;
|
||||
use OC\Files\Filesystem;
|
||||
use OC\Files\ObjectStore\ObjectStoreStorage;
|
||||
use OC\Files\Storage\Wrapper\Encryption;
|
||||
use OC\Files\Storage\Wrapper\Jail;
|
||||
use OC\Files\Storage\Wrapper\Wrapper;
|
||||
use OCP\Files\Cache\ICache;
|
||||
|
|
@ -546,7 +547,10 @@ abstract class Common implements Storage, ILockingStorage, IWriteStreamStorage,
|
|||
}
|
||||
|
||||
public function moveFromStorage(IStorage $sourceStorage, string $sourceInternalPath, string $targetInternalPath): bool {
|
||||
if ($this->isSameStorage($sourceStorage)) {
|
||||
if (
|
||||
!$sourceStorage->instanceOfStorage(Encryption::class) &&
|
||||
$this->isSameStorage($sourceStorage)
|
||||
) {
|
||||
// resolve any jailed paths
|
||||
while ($sourceStorage->instanceOfStorage(Jail::class)) {
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue