aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@users.noreply.github.com>2024-09-15 22:17:57 +0200
committerGitHub <noreply@github.com>2024-09-15 22:17:57 +0200
commit1e0ecc4e4e1ab5c309a5ce547571621e57469b46 (patch)
treefcc312b56d228921971cdfb169986e2f047883c2
parent5d548e631b54795dfb67bce5e376a87f93979f33 (diff)
parent2f6c654336959cf1e79facdb3fcd98fde63d1cc2 (diff)
downloadnextcloud-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.php3
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 [];
}