diff options
author | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2024-09-15 22:17:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-15 22:17:57 +0200 |
commit | 1e0ecc4e4e1ab5c309a5ce547571621e57469b46 (patch) | |
tree | fcc312b56d228921971cdfb169986e2f047883c2 | |
parent | 5d548e631b54795dfb67bce5e376a87f93979f33 (diff) | |
parent | 2f6c654336959cf1e79facdb3fcd98fde63d1cc2 (diff) | |
download | nextcloud-server-1e0ecc4e4e1ab5c309a5ce547571621e57469b46.tar.gz nextcloud-server-1e0ecc4e4e1ab5c309a5ce547571621e57469b46.zip |
Merge pull request #47935 from nextcloud/backport/47854/stable28
[stable28] fix(appstore): Ensure returned apps from AppStore are valid
-rw-r--r-- | lib/private/App/AppStore/Fetcher/AppFetcher.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/App/AppStore/Fetcher/AppFetcher.php b/lib/private/App/AppStore/Fetcher/AppFetcher.php index 3f7f5e0a3bd..98eda35b3a1 100644 --- a/lib/private/App/AppStore/Fetcher/AppFetcher.php +++ b/lib/private/App/AppStore/Fetcher/AppFetcher.php @@ -85,7 +85,8 @@ class AppFetcher extends Fetcher { /** @var mixed[] $response */ $response = parent::fetch($ETag, $content); - if (empty($response)) { + if (!isset($response['data']) || $response['data'] === null) { + $this->logger->warning('Response from appstore is invalid, apps could not be retrieved. Try again later.', ['app' => 'appstoreFetcher']); return []; } |