server/tests
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
..
acceptance correct delete-icon to icon-delete, fix #11128 2014-09-22 18:17:33 +02:00
apps [App Code Check] add check for version and mandatory fields 2015-09-24 11:58:12 +02:00
core Merge pull request #18444 from owncloud/occ-config-types 2016-01-25 10:02:51 +01:00
data No longer evaluate appinfo/version 2016-02-10 17:24:14 +01:00
docker/mariadb Use official mariadb docker 2016-02-11 14:17:17 +01:00
lib Keep "encryptedVersion" when calling \OC\Files\View::copy 2016-03-03 14:15:36 +01:00
objectstore local entrypoint.sh isn't needed - all fixes are upstream 2016-03-01 13:54:46 +01:00
ocs Following the spec: 2015-08-05 17:49:44 +02:00
ocs-provider Fix formatting of response 2016-02-25 19:05:05 +01:00
settings Merge pull request #22551 from owncloud/make-exceptions-easier-to-debug 2016-02-23 10:23:03 +01:00
travis Make Travis CI pass when DAV was not touched 2015-10-29 10:14:45 +01:00
apps.php do not execute integration tests when executing autotest.sh 2015-05-15 16:38:21 +02:00
bootstrap.php Load all enabled apps in test bootstrap 2015-09-07 16:06:53 +01:00
enable_all.php implementation of the federated share provider 2016-02-08 11:30:48 +01:00
karma.config.js Add system tags filter section for files app 2016-02-09 10:59:29 +01:00
phpunit-autotest-external.xml remove deprecated strict setting 2015-12-09 12:10:12 +01:00
phpunit-autotest.xml Fix coverage reporting 2016-02-16 14:21:28 +01:00
phpunit.xml.dist Add endpoint with list of OCS providers 2015-06-27 18:23:49 +02:00
preseed-config.php Do not add apps2/ directory if it does not exist 2015-03-19 09:07:29 +01:00
startsessionlistener.php Make compatible with PHPUnit 5.1 2015-12-10 09:22:41 +01:00