server/apps/files_versions
Lukas Reschke 72c8187cbb 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:15:36 +01:00
..
ajax Remove path from versions response 2016-02-10 13:38:38 +01:00
appinfo Increase all versions on master which is now 9.1 2016-03-02 08:53:42 +01:00
command Happy new year! 2016-01-12 15:02:18 +01:00
css fix sidebar Versions layout 2015-09-17 13:15:45 +02:00
img introduce new app page layout 2014-10-15 15:21:40 +02:00
js Use full path of known file when handling versions 2016-02-10 13:39:25 +01:00
l10n [tx-robot] updated from transifex 2016-02-25 01:58:06 -05:00
lib Keep "encryptedVersion" when calling \OC\Files\View::copy 2016-03-03 14:15:36 +01:00
tests Update author information 2016-03-01 17:25:15 +01:00
download.php Happy new year! 2016-01-12 15:02:18 +01:00