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 +07:00
..
Accounts bring back setEmailAddress for the user management 2016-11-25 10:26:48 +07:00
Activity Fix activity manager tests 2016-11-16 09:25:45 +07:00
App Exclude pre-release versions as per SemVer 2016-11-25 11:32:46 +07:00
AppFramework Merge pull request #2066 from nextcloud/fix-redirect-double-encoding 2016-11-29 17:21:43 +07:00
Archive
Authentication copy remember-me value when renewing a session token 2016-11-27 14:19:57 +07:00
BackgroundJob
Cache
Command
Comments Merge pull request #1738 from nextcloud/comments-provide-displaynames-with-mentions 2016-10-26 14:02:49 +07:00
DB Add tests 2016-11-02 21:10:51 +07:00
Encryption Fix shared storage namespace in DecryptAll class 2016-10-20 20:36:50 +07:00
Files Merge pull request #2411 from nextcloud/fix-encryption-home-storage 2016-12-05 15:38:12 +07:00
Group
Hooks
Http/Client
IntegrityCheck
L10N Fix more tests 2016-10-28 22:16:28 +07:00
Lock
Lockdown Add test for setting up fake fs 2016-11-16 15:24:32 +07:00
Log
Mail
Memcache
Migration
Notification Use a php class for the definitions to avoid loading problems 2016-11-09 08:52:07 +07:00
OCS
Preview Dispatch event on preview request 2016-11-10 14:28:09 +07:00
PublicNamespace
Repair Add test if repair step is already done 2016-11-19 20:26:53 +07:00
RichObjectStrings Add test and adjust PHP function arguments 2016-11-09 10:49:57 +07:00
Security Add Identityproof tests 2016-11-24 21:50:19 +07:00
Session
Settings update tests 2016-11-21 15:59:08 +07:00
Share Cleanup OC_Group usage a bit 2016-11-04 20:55:47 +07:00
Share20 add method to check if a share provider for a given type is loaded 2016-11-01 19:54:39 +07:00
SystemTag
Template
Traits
Updater Document updater channel & check for correct PHP version in updater 2016-12-06 00:19:13 +07:00
User Set last-login-check on basic auth 2016-12-05 20:57:15 +07:00
Util
APITest.php
AllConfigTest.php
AppConfigTest.php Make sure all tests use the TestCase method to overwrite services 2016-10-20 15:19:41 +07:00
AppTest.php Adjust unit tests 2016-11-21 11:30:03 +07:00
AutoLoaderTest.php
AvatarManagerTest.php Add using casing check/fix for initMountPoints 2016-11-02 22:21:46 +07:00
AvatarTest.php
CapabilitiesManagerTest.php
ConfigTest.php
ContactsManagerTest.php
DateTimeFormatterTest.php Fix more tests 2016-10-28 22:16:28 +07:00
ErrorHandlerTest.php
FileChunkingTest.php
FilesTest.php
HTTPHelperTest.php
HelperStorageTest.php
HookHelper.php
ImageTest.php
InfoXmlTest.php Add tests for commands in info.xml 2016-10-11 19:48:31 +07:00
InstallerTest.php Don't use cached informations for app version 2016-12-09 18:01:45 +07:00
LargeFileHelperGetFileSizeTest.php
LargeFileHelperTest.php
LegacyHelperTest.php Simplify isSubDirectory check 2016-10-07 21:56:43 +07:00
LoggerTest.php
NaturalSortTest.php
NavigationManagerTest.php
PreviewTest.php
RepairStepTest.php
ServerTest.php Add update support 2016-10-31 17:17:47 +07:00
SetupTest.php
StreamWrappersTest.php Fix tests 2016-10-31 17:17:45 +07:00
SubAdminTest.php
TagsTest.php
TempManagerTest.php
TemplateFunctionsTest.php
TestCase.php Add a magic wrapper from hell to allow phpunit4 to run the code again 2016-11-15 14:49:14 +07:00
TestCasePhpUnit4.php Add a magic wrapper from hell to allow phpunit4 to run the code again 2016-11-15 14:49:14 +07:00
TestCasePhpUnit5.php Add a magic wrapper from hell to allow phpunit4 to run the code again 2016-11-15 14:49:14 +07:00
TestCasePhpUnitCompatibility.php Add a magic wrapper from hell to allow phpunit4 to run the code again 2016-11-15 14:49:14 +07:00
TestMoveableMountPoint.php
UpdaterTest.php
UrlGeneratorTest.php Fix urlgenerator test 2016-11-03 14:00:33 +07:00
UserTest.php
UtilCheckServerTest.php
UtilTest.php Add system config htaccess.IgnoreFrontController for prettyURLs w/o mod_env 2016-11-16 22:28:49 +07:00