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

[stable31] fix(AppConfig#setTypedValue): Catch AppConfigUnknownKeyException
This commit is contained in:
Marcel Klehr 2025-08-28 09:17:27 +02:00 committed by GitHub
commit 561f0133fe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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();