aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorGit'Fellow <12234510+solracsf@users.noreply.github.com>2024-09-09 19:50:11 +0200
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2024-09-13 08:56:37 +0000
commitd8d2130a04830a2e0d20f3816c3d9050bb841405 (patch)
tree115137472888d44e9d629e5dced3a9de2381449b /lib
parent264cd2dccec00c0ebaaff57f341ae37cb9eb8b58 (diff)
downloadnextcloud-server-d8d2130a04830a2e0d20f3816c3d9050bb841405.tar.gz
nextcloud-server-d8d2130a04830a2e0d20f3816c3d9050bb841405.zip
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
Diffstat (limited to 'lib')
-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..4acdacffaf6 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 (empty($response) || $response['data'] === null) {
+ $this->logger->warning('Response from appstore is invalid, apps could not be retrieved. Try again later.', ['app' => 'appstoreFetcher']);
return [];
}