nextcloud-server/apps
Lukas Reschke 98f79173ed Keep "encryptedVersion" when calling `\OC\Files\View::copy`
When calling `\OC\Files\View::copy` we should also keep the version to ensure that the file will always have the correct version attached and can be successfully decrypted.

To test this the following steps are necessary (from https://github.com/owncloud/core/issues/22781#issuecomment-191328982):

1. setup a new ownCloud 9.0 beta2
2. enable encryption
2. upload a docx (5.7MB large)
3. upload the same file again and overwrite the existing file
4. I can download the original file and the first version
5. I restore the first version
6. restored version can no longer be downloaded with the error described above

The manual cache operation in `\OCA\Files_Versions\Storage` is unfortunately necessary since `\OCA\Files_Versions\Storage::copyFileContents` is not using `\OCP\Files\Storage::moveFromStorage` in the case when an object storage is used. Due to the workaround added in 54cea05271 the stream is directly copied and thus bypassing the FS.
2016-03-03 14:41:53 +07:00
..
comments Add new apps 2016-03-01 17:52:32 +07:00
dav Merge pull request #22757 from owncloud/apply-license 2016-03-01 15:36:37 +07:00
encryption Remove Scrutinizer Auto Fixer 2016-03-01 17:48:23 +07:00
federatedfilesharing Add new apps 2016-03-01 17:52:32 +07:00
federation Map Maci 2016-03-01 17:45:05 +07:00
files Remove Scrutinizer Auto Fixer 2016-03-01 17:48:23 +07:00
files_external Merge pull request #22757 from owncloud/apply-license 2016-03-01 15:36:37 +07:00
files_sharing Remove Scrutinizer Auto Fixer 2016-03-01 17:48:23 +07:00
files_trashbin Remove Scrutinizer Auto Fixer 2016-03-01 17:48:23 +07:00
files_versions Keep "encryptedVersion" when calling `\OC\Files\View::copy` 2016-03-03 14:41:53 +07:00
provisioning_api Remove Scrutinizer Auto Fixer 2016-03-01 17:48:23 +07:00
systemtags Add new apps 2016-03-01 17:52:32 +07:00
testing Add new apps 2016-03-01 17:52:32 +07:00
updatenotification [tx-robot] updated from transifex 2016-02-28 01:55:12 +07:00
user_ldap Remove Scrutinizer Auto Fixer 2016-03-01 17:48:23 +07:00