diff options
author | Git'Fellow <12234510+solracsf@users.noreply.github.com> | 2024-09-09 19:50:11 +0200 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2024-09-13 08:57:57 +0000 |
commit | b1d6625676e9350d5933b46e7044eb54d54bf8ea (patch) | |
tree | 621fa6b2e8034e06486786ff6d5151a5fc7620ff /lib/private/App/AppStore | |
parent | a73e38b498da2d42cfa6eb5995abb9b15ccaf08a (diff) | |
download | nextcloud-server-b1d6625676e9350d5933b46e7044eb54d54bf8ea.tar.gz nextcloud-server-b1d6625676e9350d5933b46e7044eb54d54bf8ea.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/private/App/AppStore')
-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 173c0d68437..0f96049d0ef 100644 --- a/lib/private/App/AppStore/Fetcher/AppFetcher.php +++ b/lib/private/App/AppStore/Fetcher/AppFetcher.php @@ -77,7 +77,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 []; } |