nextcloud-server/tests/lib
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
..
Accounts
Activity
App
AppFramework
Archive
Authentication
BackgroundJob
Cache
Command
Comments
DB
Encryption
Files Merge pull request #2411 from nextcloud/fix-encryption-home-storage 2016-12-05 15:38:12 +01:00
Group
Hooks
Http/Client
IntegrityCheck
L10N
Lock
Lockdown
Log
Mail
Memcache
Migration
Notification
OCS
Preview
PublicNamespace
Repair
RichObjectStrings
Security
Session
Settings
Share
Share20
SystemTag
Template
Traits
Updater Document updater channel & check for correct PHP version in updater 2016-12-06 00:19:13 +01:00
User Set last-login-check on basic auth 2016-12-05 20:57:15 +01:00
Util
AllConfigTest.php
APITest.php
AppConfigTest.php
AppTest.php
AutoLoaderTest.php
AvatarManagerTest.php
AvatarTest.php
CapabilitiesManagerTest.php
ConfigTest.php
ContactsManagerTest.php
DateTimeFormatterTest.php
ErrorHandlerTest.php
FileChunkingTest.php
FilesTest.php
HelperStorageTest.php
HookHelper.php
HTTPHelperTest.php
ImageTest.php
InfoXmlTest.php
InstallerTest.php Don't use cached informations for app version 2016-12-09 18:01:45 +01:00
LargeFileHelperGetFileSizeTest.php
LargeFileHelperTest.php
LegacyHelperTest.php
LoggerTest.php
NaturalSortTest.php
NavigationManagerTest.php
PreviewTest.php
RepairStepTest.php
ServerTest.php
SetupTest.php
StreamWrappersTest.php
SubAdminTest.php
TagsTest.php
TemplateFunctionsTest.php
TempManagerTest.php
TestCase.php
TestCasePhpUnit4.php
TestCasePhpUnit5.php
TestCasePhpUnitCompatibility.php
TestMoveableMountPoint.php
UpdaterTest.php
UrlGeneratorTest.php
UserTest.php
UtilCheckServerTest.php
UtilTest.php