diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2015-04-30 14:30:02 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2015-05-06 14:20:05 +0200 |
commit | e4829a23585069aaed7260ad69c041c1848b0342 (patch) | |
tree | f1be709653f92f2b8fa2f6454fd283a9518a455c /lib/private/files/storage/common.php | |
parent | dc39bda8704d54d7481b9b42d2cea44146d18a3d (diff) | |
download | nextcloud-server-e4829a23585069aaed7260ad69c041c1848b0342.tar.gz nextcloud-server-e4829a23585069aaed7260ad69c041c1848b0342.zip |
update 'encrypted'-flag in file cache according to the storage settings
Diffstat (limited to 'lib/private/files/storage/common.php')
-rw-r--r-- | lib/private/files/storage/common.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/private/files/storage/common.php b/lib/private/files/storage/common.php index 06c61fe6931..fc30b385e2e 100644 --- a/lib/private/files/storage/common.php +++ b/lib/private/files/storage/common.php @@ -545,6 +545,11 @@ abstract class Common implements Storage { } } else { $source = $sourceStorage->fopen($sourceInternalPath, 'r'); + // TODO: call fopen in a way that we execute again all storage wrappers + // to avoid that we bypass storage wrappers which perform important actions + // for this operation. Same is true for all other operations which + // are not the same as the original one.Once this is fixed we also + // need to adjust the encryption wrapper. $target = $this->fopen($targetInternalPath, 'w'); list(, $result) = \OC_Helper::streamCopy($source, $target); if ($result and $preserveMtime) { |