aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/App/AppStore
Commit message (Collapse)AuthorAgeFilesLines
* fix: check if key is setbackport/47854/stable29Git'Fellow2024-09-131-1/+1
| | | | Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com> Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
* fix(appstore): Ensure returned apps from AppStore are validGit'Fellow2024-09-131-1/+2
| | | | | | | | | | | | | | | | Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com> fix: lint chore: remove space Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com> fix: check if response array is null Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com> chore: Add log
* fix(appstore): Cache apps.json also on dev instancesMarcel Müller2024-09-051-8/+9
| | | | Signed-off-by: Marcel Müller <marcel-mueller@gmx.de>
* chore: add warning in case of failureGit'Fellow2024-07-251-0/+1
| | | Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
* fix(appstore): Return an empty array in case of failGit'Fellow2024-07-251-0/+3
| | | Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
* fix(AppStore\Fetcher): Ensure `get` returns an arrayFerdinand Thiessen2024-03-221-1/+1
| | | | | | | When fetch fails and the `data` prop contains null (e.g. `json_decode` failed), then we should return an empty array instead of null. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(AppDiscoverFetcher): Do not remove entries as expired that have no ↵Ferdinand Thiessen2024-03-191-18/+18
| | | | | | expiry date Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* feat(settings): Cache app discover images to ensure privacy of usersFerdinand Thiessen2024-03-141-0/+16
| | | | | | | Co-authored-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com> Co-authored-by: Ferdinand Thiessen <opensource@fthiessen.de> Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* feat: Allow to fetch app discover json and provide frontend API routeFerdinand Thiessen2024-03-142-1/+101
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* feat: Adding PublicSectorBundlesorbaugh2024-03-122-0/+52
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* fix: Fetch custom app store url without internet connectionJulius Härtl2024-03-041-2/+4
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Fix psalm errorsHamid Dehnavi2024-02-231-1/+1
| | | | Signed-off-by: Hamid Dehnavi <hamid.dev.pro@gmail.com>
* Make adjustments based on the psalm reviewHamid Dehnavi2024-02-231-6/+2
| | | | | | Signed-off-by: Hamid Dehnavi <hamid.dev.pro@gmail.com> Co-authored-by: Julius Härtl <jus@bitgrid.net> Signed-off-by: Hamid Dehnavi <hamid.dev.pro@gmail.com>
* Fix code styleHamid Dehnavi2024-02-234-6/+1
| | | | Signed-off-by: Hamid Dehnavi <hamid.dev.pro@gmail.com>
* Refactor lib/private/AppHamid Dehnavi2024-02-236-41/+24
| | | | Signed-off-by: Hamid Dehnavi <hamid.dev.pro@gmail.com>
* fix(appstore): Only send subscription keys to valid appstoresJoas Schilling2024-01-151-4/+7
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* chore: apply changes from Nextcloud coding standards 1.1.1Joas Schilling2023-11-233-16/+16
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* Convert isset ternary to null coalescing operatorHamid Dehnavi2023-09-281-2/+2
| | | | Signed-off-by: Hamid Dehnavi <hamid.dev.pro@gmail.com>
* Refactors "strpos" calls in lib/private to improve code readability.Faraz Samapoor2023-05-152-2/+2
| | | | Signed-off-by: Faraz Samapoor <fsamapoor@gmail.com>
* Use typed version of IConfig::getSystemValue as much as possibleCôme Chilliet2023-04-051-7/+7
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* composer run cs:fixCôme Chilliet2023-01-206-15/+8
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* remove getDefaultInstallationBundleArthur Schiwon2022-09-221-23/+4
| | | | | | - because all apps are shipped now it was returning an empty result Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* remove Core BundleArthur Schiwon2022-09-222-43/+0
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Fix #30003acsfer2022-06-211-2/+2
| | | Fix #30003
* Also allow pre-releases and nightlies when installing from gitJoas Schilling2022-03-101-3/+3
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Similar to the fetch() method respect the channel in the get()Joas Schilling2022-03-101-1/+3
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix appstoreenabled check in Fetcher so it's coherent with AppSettingsControllerJulien Veyssier2021-10-181-2/+2
| | | | Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
* Send the subscription key to the appstore requestsJohn Molakvoæ2021-10-143-5/+22
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Fix variableJohn Molakvoæ2021-10-131-5/+5
| | | Co-authored-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com>
* Allow to whitelist apps from the apsptoreJohn Molakvoæ2021-10-131-2/+24
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Fix typing error in AppFetcher.phpLouis Chemineau2021-06-211-1/+3
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-0413-29/+19
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Fix PHP CSJoas Schilling2021-04-271-1/+0
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Less ILoggerJoas Schilling2021-04-273-31/+15
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix warning in AppFetcher.php when appstore is disabledJakub Onderka2021-03-101-0/+4
| | | | Signed-off-by: Jakub Onderka <ahoj@jakubonderka.cz>
* Revert "Fix comparison of PHP versions"Christoph Wurst2021-01-261-2/+2
| | | | This reverts commit bedd9acf7874b836bef224989c2ce7f5e3b0a2fa.
* Fix comparison of PHP versionsDamien Goutte-Gattat2021-01-141-2/+2
| | | | | | | | | | | Use the builtin function `version_compare` to check an app's compatibility with the available PHP version, instead of reusing the `OC\App\CompareVersion::isCompatible` method which is intended to compare Nextcloud versions. PHP version strings do not always necessarily follow the simple Major.Minor.Patch format used by Nextcloud and therefore cannot be properly compared by that method. Signed-off-by: Damien Goutte-Gattat <dgouttegattat@incenp.org>
* Remove unneeded casts that were found by PsalmMorris Jobke2021-01-113-3/+3
| | | | | | In preparation of the update of Psalm from 4.2.1 to 4.3.1+ (see https://github.com/nextcloud/server/pull/24521) Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-161-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Check php compatibility of app store app releasesChristoph Wurst2020-12-041-7/+25
| | | | | | | | | | | | | | | Apps might increase the minimum php version requirement, in which case an update could break the app or even the whole instance. We must not install those releases, or better, don't even show them for update/installation. This extends the app fetcher code to filter out the releases that are not installable. The filter respects minimum and maximum requirements. E.g. apps that are still only released for php7.3 won't show up for php7.4 instances. This behavior is new but if an app lists an explicit version requirement, then we ought to repect that. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Only retry fetching app store data once every 5 minutes in case it failsJulius Härtl2020-10-161-1/+16
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Install richdocumentscode depending on the architectureJulius Härtl2020-09-171-3/+9
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Update the license headers for Nextcloud 20Christoph Wurst2020-08-243-1/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Allow to update to nightlyJohn Molakvoæ (skjnldsv)2020-08-072-6/+15
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Increase timeout of the appstore requestsJoas Schilling2020-06-121-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update hub bundle and add proxy rule to htaccessJulius Härtl2020-05-251-2/+2
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Revert "Compress the appstore requests by default"Morris Jobke2020-05-201-2/+3
| | | | | | This reverts commit 6ffde128ad17a1ebe38f8d18b21a37d01b47c46b. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Compress the appstore requests by defaultMorris Jobke2020-05-201-3/+2
| | | | | | In test it reduced the transfered data from 5 MB to 2 MB. This should reduce the load on the appstore significantly. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Cache appstore requests for 60 instead of 5 minutesMorris Jobke2020-05-201-2/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update education bundleRoeland Jago Douma2020-05-011-2/+0
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>