Merge pull request #54687 from nextcloud/backport/54620/stable30

[stable30] fix(AppConfig#setTypedValue): Catch AppConfigUnknownKeyException
This commit is contained in:
Marcel Klehr 2025-08-28 08:56:31 +02:00 committed by GitHub
commit 0570ce9ec3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -801,8 +801,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();