summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-11-20 17:23:20 +0100
committerMorris Jobke <hey@morrisjobke.de>2017-11-20 20:49:03 +0100
commit6fd51426bf19817e16f85014ce8f28d33e9f7913 (patch)
tree0757bccbe30866a7bf282a6c9205039e60736eaf
parentf347e2e4a6cab71c35d58ff21692e23d7443db60 (diff)
downloadnextcloud-server-6fd51426bf19817e16f85014ce8f28d33e9f7913.tar.gz
nextcloud-server-6fd51426bf19817e16f85014ce8f28d33e9f7913.zip
Remove wrong entry in admin_settings that causes 500
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
-rw-r--r--lib/private/Settings/Manager.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/private/Settings/Manager.php b/lib/private/Settings/Manager.php
index 6da499c31c4..cd0af5e7bb2 100644
--- a/lib/private/Settings/Manager.php
+++ b/lib/private/Settings/Manager.php
@@ -32,6 +32,7 @@ namespace OC\Settings;
use OC\Accounts\AccountManager;
use OCP\App\IAppManager;
use OCP\AppFramework\QueryException;
+use OCP\AutoloadNotAllowedException;
use OCP\Encryption\IManager as EncryptionManager;
use OCP\IConfig;
use OCP\IDBConnection;
@@ -471,6 +472,10 @@ class Manager implements IManager {
$settings[$row['priority']][] = $this->query($row['class']);
} catch (QueryException $e) {
// skip
+ } catch (AutoloadNotAllowedException $e) {
+ // skip error and remove remnant of disabled app
+ $this->log->warning('Orphan setting entry will be removed from admin_settings: ' . json_encode($row));
+ $this->mapper->remove(Mapper::TABLE_ADMIN_SETTINGS, $row['class']);
}
}