server/tests/lib/files
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
..
cache Add fallback moveFromCache implementation 2016-01-29 13:06:59 +01:00
config Fix failing oracle and postgres tests 2016-01-27 12:53:44 +01:00
mount Revert "Fix mounting wrapped storages resulting in many-layered wrapping" 2015-08-19 14:41:43 +01:00
node Fix more unit tests to pass a mock storage instead of null to FileInfo 2015-12-08 16:33:39 +01:00
objectstore Removed deprecated function OC_User::deleteUser 2015-12-17 16:18:40 +01:00
storage Keep "encryptedVersion" when calling \OC\Files\View::copy 2016-03-03 14:15:36 +01:00
stream fixing unit tests 2016-02-09 23:43:26 +01:00
type Move mimetype files into /resources/config/ 2015-09-22 16:43:28 +02:00
utils remove old propagation logic 2015-12-01 16:50:20 +01:00
etagtest.php Use TempManager instead of tmpFolder 2015-12-18 11:19:53 +01:00
filesystem.php Use TempManager instead of tmpFile 2015-12-18 11:25:33 +01:00
pathverificationtest.php More group DB 2015-11-30 10:55:13 +01:00
view.php Use TempManager instead of tmpFolder 2015-12-18 11:19:53 +01:00