Merge pull request #54686 from nextcloud/backport/54620/stable31

[stable31] fix(AppConfig#setTypedValue): Catch AppConfigUnknownKeyException
pull/54704/head
Marcel Klehr 2025-08-28 09:17:27 +07:00 committed by GitHub
commit 561f0133fe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 2 deletions

@ -840,8 +840,12 @@ class AppConfig implements IAppConfig {
$type |= self::VALUE_SENSITIVE;
}
if ($lazy !== $this->isLazy($app, $key)) {
$refreshCache = true;
try {
if ($lazy !== $this->isLazy($app, $key)) {
$refreshCache = true;
}
} catch (AppConfigUnknownKeyException) {
// pass
}
$update = $this->connection->getQueryBuilder();