nextcloud-server/tests/lib
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
..
app Update info checker requirements 2016-02-11 11:54:13 +07:00
appframework Use IQueryBuilder::PARAM_* instead of \PDO::PARAM_* 2016-02-29 09:44:40 +07:00
archive
backgroundjob Add message key to context of logException 2016-01-15 14:55:30 +07:00
cache propagate folder size in the same query for write updates 2016-01-15 15:36:52 +07:00
command Allow specifing the signing path 2016-02-03 20:08:40 +07:00
comments Limit comment message to 1k chars 2016-02-09 03:14:30 +07:00
db Use IQueryBuilder::PARAM_* instead of \PDO::PARAM_* 2016-02-29 09:44:40 +07:00
encryption Adding more DB groups to test suits 2015-11-30 10:55:06 +07:00
files Keep "encryptedVersion" when calling `\OC\Files\View::copy` 2016-03-03 14:41:53 +07:00
group Inject DBConnection 2016-01-12 08:24:08 +07:00
hooks
http/client
integritycheck Allow specifing the signing path 2016-02-03 20:08:40 +07:00
l10n Check whether ownCloud is installed 2016-01-27 18:30:18 +07:00
lock Remove all locks after ttl from the db 2015-12-09 14:53:24 +07:00
log Replace OC_Config in tests with IConfig calls 2015-12-02 23:14:52 +07:00
mail
memcache
notification Move the notification API to public namespace 2016-01-22 10:32:42 +07:00
ocs Adding more DB groups to test suits 2015-11-30 10:55:06 +07:00
preview Adding more DB groups to test suits 2015-11-30 10:55:06 +07:00
public
repair Use IQueryBuilder::PARAM_* instead of \PDO::PARAM_* 2016-02-29 09:44:40 +07:00
security Add public API to give developers the possibility to adjust the global CSP defaults 2016-01-28 18:36:46 +07:00
session
share Move casting to IExpressionBuilder 2016-02-05 21:26:30 +07:00
share20 Merge pull request #22683 from owncloud/fix_22682 2016-02-29 08:53:58 +07:00
systemtag Merge pull request #22573 from owncloud/issue-22568-allow-string-object-ids 2016-02-24 12:15:23 +07:00
template
traits
user Introduce IUser::setEMailAddress and add hook mechanism 2016-01-20 14:57:20 +07:00
util/user
activitymanager.php
allconfig.php Introduce IDBConnection::setValues() 2016-01-18 11:10:41 +07:00
api.php
app.php Remove unneeded parameter from OC_App::getEnabledApps 2016-02-15 13:33:07 +07:00
appconfig.php Apply DB group annotation ... 2015-11-30 10:55:05 +07:00
archive.php
autoloader.php Move lib/repair to lib/private/repair 2016-01-07 09:14:35 +07:00
avatarmanagertest.php Do not copy skeleton on avatar access 2016-02-16 09:18:38 +07:00
avatartest.php Trigger change on avatar delete 2016-01-25 20:56:04 +07:00
cache.php cap the number of entries we cache in smb's statcache 2016-01-12 13:26:58 +07:00
capabilitiesmanager.php
configtests.php Use TempManager instead of tmpFolder 2015-12-18 11:19:53 +07:00
contactsmanager.php
datetimeformatter.php
db.php Remove OC_DB::insertid 2016-01-07 14:54:55 +07:00
dbschema.php getMediumStrengthGenerator is deprecated and does not do anything anymore 2016-01-11 20:06:30 +07:00
errorHandler.php
files.php
group.php Remove deprecated function OC_User::getManager 2015-12-17 16:18:34 +07:00
helper.php properly use standard 2016-01-19 10:41:12 +07:00
helperstorage.php Removed deprecated function OC_User::deleteUser 2015-12-17 16:18:40 +07:00
hookhelper.php
httphelper.php
image.php
installer.php Verify signature of apps with level "Official" coming from the appstore 2016-01-10 19:40:28 +07:00
largefilehelper.php
largefilehelpergetfilesize.php
logger.php
naturalsort.php
navigationmanagertest.php
ocsclienttest.php Verify signature of apps with level "Official" coming from the appstore 2016-01-10 19:40:28 +07:00
preview.php Adding more DB groups to test suits 2015-11-30 10:55:06 +07:00
repair.php
server.php Add public API to give developers the possibility to adjust the global CSP defaults 2016-01-28 18:36:46 +07:00
setup.php Run .htaccess updates in any case 2015-12-08 08:16:24 +07:00
streamwrappers.php Use TempManager instead of tmpFile 2015-12-18 11:25:33 +07:00
subadmin.php
tags.php Remove OC_DB::getConnection 2016-01-07 14:54:55 +07:00
template.php
tempmanager.php
testcase.php Add tests for findLanguage() 2016-01-26 14:02:32 +07:00
testmoveablemountpoint.php
updater.php Allow downgrades for our brave developers, that switch between branches 2016-01-07 14:18:33 +07:00
urlGenerator.php Add DB group to some files_external tests 2015-11-30 10:55:10 +07:00
user.php Removed deprecated function OC_User::deleteUser 2015-12-17 16:18:40 +07:00
util.php Fix unit tests 2016-02-12 07:49:36 +07:00
utilcheckserver.php Use OCP\Util::getVersion instead of the internal private implementation 2015-12-18 15:26:54 +07:00