Merge pull request #47854 from nextcloud/validAppsFromAppStore

fix(appstore): Ensure returned apps from AppStore are valid
This commit is contained in:
Git'Fellow 2024-09-13 10:55:33 +02:00 committed by GitHub
commit 413ba1a718
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -53,7 +53,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 [];
}