nextcloud/tests
Lukas Reschke 32bf8ec826
Don't use cached informations for app version
When installing an app from the appstore the `\OC_App::getAppVersion` code is triggered twice:

- First when the downloader tries to compare the current version to the new version on the appstore to check if there is a newer version. This protects against downgrade attacks and is implemented in `\OC\Installer::downloadApp`.
- Second, when the app is actually installed the current version is written to the database. (`\OC\Installer::installApp`)

This fails however when the version is actually cached. Because in step 1 the cached version will be set to "0" and then be reused in the second step.

While this is probably not the cleanest version I assume this is an approach that is least invasive. Feedback and suggestions welcome :)

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2016-12-09 18:01:45 +01:00
..
Core Save the timezone on login again 2016-12-08 10:45:24 +01:00
Settings make sure that we only update the email address if it really changed 2016-12-02 18:07:08 +01:00
apps [App Code Check] add check for version and mandatory fields 2015-09-24 11:58:12 +02:00
data Fix InfoParser empty tests 2016-11-16 09:25:45 +01:00
docker Adding docker based unit test execution for mysql utf8mb4 2016-10-19 00:15:01 +02:00
lib Don't use cached informations for app version 2016-12-09 18:01:45 +01:00
objectstore make object prefix configurable 2016-11-14 15:10:56 +01:00
travis Changed name of default logfile from owncloud.log to nextcloud.log. 2016-07-04 11:50:32 +02:00
apps.php Fix the tests again 2016-05-25 16:51:02 +02:00
bootstrap.php Move tests/ to PSR-4 (#24731) 2016-05-20 15:38:20 +02:00
enable_all.php Fix tests 2016-10-31 17:17:45 +01:00
karma.config.js Generate js codecov coverage 2016-11-09 08:03:29 +01:00
phpunit-autotest-external.xml Adjust the phpunit config 2016-05-25 15:14:37 +02:00
phpunit-autotest.xml [9.2] Add missing unit tests (#25936) 2016-10-24 14:25:52 +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