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
files Keep "encryptedVersion" when calling `\OC\Files\View::copy` 2016-03-03 14:41:53 +07:00
group
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
log
mail
memcache
notification Move the notification API to public namespace 2016-01-22 10:32:42 +07:00
ocs
preview
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
archive.php
autoloader.php
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
capabilitiesmanager.php
configtests.php
contactsmanager.php
datetimeformatter.php
db.php
dbschema.php
errorHandler.php
files.php
group.php
helper.php properly use standard 2016-01-19 10:41:12 +07:00
helperstorage.php
hookhelper.php
httphelper.php
image.php
installer.php
largefilehelper.php
largefilehelpergetfilesize.php
logger.php
naturalsort.php
navigationmanagertest.php
ocsclienttest.php
preview.php
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
streamwrappers.php
subadmin.php
tags.php
template.php
tempmanager.php
testcase.php Add tests for findLanguage() 2016-01-26 14:02:32 +07:00
testmoveablemountpoint.php
updater.php
urlGenerator.php
user.php
util.php Fix unit tests 2016-02-12 07:49:36 +07:00
utilcheckserver.php