summaryrefslogtreecommitdiffstats
path: root/lib/private/Installer.php
Commit message (Collapse)AuthorAgeFilesLines
* Remove unused use statementsMorris Jobke2017-04-221-1/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Don't use cached informations for app versionLukas Reschke2016-12-091-1/+1
| | | | | | | | | | | | | 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>
* Prevent downgrade attacks for appsLukas Reschke2016-11-111-0/+14
| | | | | | | | We should verify the app versions when installing a new update, otherwise this could result in downgrade attacks when an attacker just copies the old signature. Plus it prevents the case that in case of a bug in the appstore actually an older version gets installed. Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Correctly catch the "soft errors" nowJoas Schilling2016-11-091-4/+8
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Use a better error message and point the users to the support channelsJoas Schilling2016-11-091-1/+9
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add tests for installer methodLukas Reschke2016-10-311-26/+28
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Move to non-static versionLukas Reschke2016-10-311-1/+2
| | | | | | The static version is used nowhere in the code and just decreases coverage Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Use findAppInDirectoriesLukas Reschke2016-10-311-1/+6
| | | | | | The other function doesn't work if the appstore is disabled Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Add update supportLukas Reschke2016-10-311-248/+67
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Add support for CRLLukas Reschke2016-10-311-4/+24
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Replace with exception instead of boolean return valueLukas Reschke2016-10-311-20/+8
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Make non-staticLukas Reschke2016-10-311-2/+3
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Use new appstore APILukas Reschke2016-10-311-85/+145
| | | | | | This change introduces the new appstore API in Nextcloud. Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Add app name to the callJoas Schilling2016-10-101-1/+1
| | | | | | Regression from 69b063f4c614a46bbe5f0ffcab11ddb08c183f04 Signed-off-by: Joas Schilling <coding@schilljs.com>
* register app autoload instead of loading appsArthur Schiwon2016-08-121-1/+2
|
* make sure shipped apps also setup their admin settings on a fresh installArthur Schiwon2016-08-111-0/+5
|
* fix registration of admin settings and section on app installArthur Schiwon2016-08-111-1/+0
|
* Initial work on Apps page split:Arthur Schiwon2016-08-091-0/+1
| | | | | | * interfaces for the Admin settings (IAdmin) and section (ISection) * SettingsManager service * example setup with LDAP app
* Update with robinJoas Schilling2016-07-211-1/+1
|
* Fix othersJoas Schilling2016-07-211-3/+4
|
* fix more stringsMorris Jobke2016-06-201-1/+1
|
* Update license headersLukas Reschke2016-05-261-4/+4
|
* Correctly register autoloading before install.php and loading commandsJoas Schilling2016-05-111-1/+1
|
* Allow declaration of background jobs in info.xmlThomas Müller2016-05-031-0/+3
|
* Move OC_Archive to \OC\Archive\ArchiveRoeland Jago Douma2016-05-021-1/+1
| | | | | | * Move out of legacy folder * Move to proper namespace * Fix calling code
* Move uninstall repair step execution to the correct placeThomas Müller2016-05-021-5/+0
|
* Fix installer file locationThomas Müller2016-05-021-0/+625