Julius Knorr
606241caeb
chore(legacy): Introduce public version ct plass and drop version methods from OC_Util
...
Signed-off-by: Julius Knorr <jus@bitgrid.net>
2024-09-20 14:53:34 +07:00
provokateurin
9836e9b164
chore(deps): Update nextcloud/coding-standard to v1.3.1
...
Signed-off-by: provokateurin <kate@provokateurin.de>
2024-09-19 14:21:20 +07:00
Grigorii K. Shartsev
70ed4aec39
fix(appstoreFetcher): get app list from custom app store
...
Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
2024-09-17 01:29:25 +07:00
Grigorii K. Shartsev
ce679c3da4
fix(appstoreFetcher): remove unneeded warning
...
Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
2024-09-17 01:24:49 +07:00
Git'Fellow
413ba1a718
Merge pull request #47854 from nextcloud/validAppsFromAppStore
...
fix(appstore): Ensure returned apps from AppStore are valid
2024-09-13 10:55:33 +07:00
Git'Fellow
dccfb6d68a
fix: check if key is set
...
Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
2024-09-13 09:49:09 +07:00
Git'Fellow
8585b05357
fix(appstore): Ensure returned apps from AppStore are valid
...
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
2024-09-11 11:12:59 +07:00
John Molakvoæ
4d3168fb24
fix(appstore): disabled appstore log level bump from debug to info
...
Co-authored-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com>
Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
2024-09-10 16:00:56 +07:00
Git'Fellow
2ac8d9a3db
fix(appstore): return if appstore is manually disabled
...
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
fix: camel case
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
fix: log a debug log
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
fix: typing
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
fix: typo
fix: typing
2024-09-09 09:56:22 +07:00
Marcel Müller
b2c2c93a03
fix(appstore): Cache apps.json also on dev instances
...
Signed-off-by: Marcel Müller <marcel-mueller@gmx.de>
2024-09-04 21:56:58 +07:00
Julius Härtl
3ca7480829
fix: Do not throw if appstore is unavailable during upgrade
...
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2024-09-04 09:31:13 +07:00
Git'Fellow
8665a9ba16
chore: add warning in case of failure
...
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
2024-07-16 18:13:25 +07:00
Git'Fellow
b010474c78
fix(appstore): Return an empty array in case of fail
...
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
2024-07-16 11:42:35 +07:00
Andy Scherzinger
dae7c159f7
chore: Add SPDX header
...
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2024-05-24 13:11:22 +07:00
Ferdinand Thiessen
63f19661d2
fix(AppStore\Fetcher): Ensure `get` returns an array
...
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>
2024-03-22 15:01:16 +07:00
Ferdinand Thiessen
bae133bf4f
fix(AppDiscoverFetcher): Do not remove entries as expired that have no expiry date
...
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-03-19 09:36:06 +07:00
Ferdinand Thiessen
df502c114d
feat(settings): Cache app discover images to ensure privacy of users
...
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>
2024-03-14 20:45:25 +07:00
Ferdinand Thiessen
f4efb762ec
feat: Allow to fetch app discover json and provide frontend API route
...
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-03-14 20:45:24 +07:00
Julius Härtl
e13fb468cf
fix: Fetch custom app store url without internet connection
...
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2024-03-04 12:47:14 +07:00
Hamid Dehnavi
cf17db2fe6
Fix psalm errors
...
Signed-off-by: Hamid Dehnavi <hamid.dev.pro@gmail.com>
2024-02-23 15:53:41 +07:00
Hamid Dehnavi
b6ef67edfc
Make adjustments based on the psalm review
...
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>
2024-02-23 15:53:41 +07:00
Hamid Dehnavi
7a8d79b85c
Fix code style
...
Signed-off-by: Hamid Dehnavi <hamid.dev.pro@gmail.com>
2024-02-23 15:53:41 +07:00
Hamid Dehnavi
84749d53a9
Refactor lib/private/App
...
Signed-off-by: Hamid Dehnavi <hamid.dev.pro@gmail.com>
2024-02-23 15:53:41 +07:00
Joas Schilling
57a30e9bbe
fix(appstore): Only send subscription keys to valid appstores
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2024-01-15 15:39:45 +07:00
Joas Schilling
aa5f037af7
chore: apply changes from Nextcloud coding standards 1.1.1
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
2023-11-23 10:36:13 +07:00
Faraz Samapoor
e7cc7653b8
Refactors "strpos" calls in lib/private to improve code readability.
...
Signed-off-by: Faraz Samapoor <fsamapoor@gmail.com>
2023-05-15 15:17:19 +07:00
Côme Chilliet
426c0341ff
Use typed version of IConfig::getSystemValue as much as possible
...
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2023-04-05 12:50:08 +07:00
Côme Chilliet
f5c361cf44
composer run cs:fix
...
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2023-01-20 11:45:08 +07:00
Joas Schilling
a9ba631e4d
Also allow pre-releases and nightlies when installing from git
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-03-10 16:10:25 +07:00
Joas Schilling
4f9c8b08ca
Similar to the fetch() method respect the channel in the get()
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-03-10 16:10:25 +07:00
Julien Veyssier
facb50ebcc
fix appstoreenabled check in Fetcher so it's coherent with AppSettingsController
...
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
2021-10-18 12:39:43 +07:00
John Molakvoæ
1f76423500
Send the subscription key to the appstore requests
...
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2021-10-14 14:48:45 +07:00
John Molakvoæ
c721581cd9
Fix variable
...
Co-authored-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com>
2021-10-13 18:14:48 +07:00
John Molakvoæ
1a6bac5874
Allow to whitelist apps from the apsptore
...
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2021-10-13 11:13:33 +07:00
Louis Chemineau
3f6d3dc307
Fix typing error in AppFetcher.php
...
Signed-off-by: Louis Chemineau <louis@chmn.me>
2021-06-21 16:31:24 +07:00
John Molakvoæ (skjnldsv)
215aef3cbd
Update php licenses
...
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2021-06-04 22:02:41 +07:00
Joas Schilling
2d75868935
Fix PHP CS
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-04-27 14:34:33 +07:00
Joas Schilling
56ae87c281
Less ILogger
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-04-27 14:34:32 +07:00
Jakub Onderka
1992d11d7d
Fix warning in AppFetcher.php when appstore is disabled
...
Signed-off-by: Jakub Onderka <ahoj@jakubonderka.cz>
2021-03-10 16:30:02 +07:00
Christoph Wurst
652bf9d363
Revert "Fix comparison of PHP versions"
...
This reverts commit bedd9acf78 .
2021-01-26 13:48:06 +07:00
Damien Goutte-Gattat
bedd9acf78
Fix comparison of PHP versions
...
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>
2021-01-14 23:03:20 +07:00
Christoph Wurst
d89a75be0b
Update all license headers for Nextcloud 21
...
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-12-16 18:48:22 +07:00
Christoph Wurst
24237f1a34
Check php compatibility of app store app releases
...
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>
2020-12-04 16:52:31 +07:00
Julius Härtl
4512c73293
Only retry fetching app store data once every 5 minutes in case it fails
...
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-10-16 14:32:58 +07:00
Christoph Wurst
2a054e6c04
Update the license headers for Nextcloud 20
...
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-08-24 14:54:25 +07:00
John Molakvoæ (skjnldsv)
9e962fb69f
Allow to update to nightly
...
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2020-08-07 13:51:39 +07:00
Joas Schilling
b6d5979d0a
Increase timeout of the appstore requests
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-06-12 13:01:06 +07:00
Morris Jobke
8123737a40
Revert "Compress the appstore requests by default"
...
This reverts commit 6ffde128ad .
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2020-05-20 13:37:28 +07:00
Morris Jobke
6ffde128ad
Compress the appstore requests by default
...
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>
2020-05-20 09:51:07 +07:00
Morris Jobke
3e0d8df036
Cache appstore requests for 60 instead of 5 minutes
...
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2020-05-20 09:51:06 +07:00