nextcloud-server/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 +07:00
..
Core Save the timezone on login again 2016-12-08 10:45:24 +07:00
Settings make sure that we only update the email address if it really changed 2016-12-02 18:07:08 +07:00
apps
data Fix InfoParser empty tests 2016-11-16 09:25:45 +07:00
docker Adding docker based unit test execution for mysql utf8mb4 2016-10-19 00:15:01 +07:00
lib Don't use cached informations for app version 2016-12-09 18:01:45 +07:00
objectstore make object prefix configurable 2016-11-14 15:10:56 +07:00
travis Changed name of default logfile from owncloud.log to nextcloud.log. 2016-07-04 11:50:32 +07:00
apps.php
bootstrap.php
enable_all.php Fix tests 2016-10-31 17:17:45 +07:00
karma.config.js Generate js codecov coverage 2016-11-09 08:03:29 +07:00
phpunit-autotest-external.xml
phpunit-autotest.xml [9.2] Add missing unit tests (#25936) 2016-10-24 14:25:52 +07:00
preseed-config.php
startsessionlistener.php