-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove wrong entry in admin_settings that causes 500 #7230
Conversation
lib/private/Settings/Manager.php
Outdated
@@ -471,6 +472,9 @@ public function getAdminSettings($section) { | |||
$settings[$row['priority']][] = $this->query($row['class']); | |||
} catch (QueryException $e) { | |||
// skip | |||
} catch (AutoloadNotAllowedException $e) { | |||
// skip error and remove remnant of disabled app | |||
$this->mapper->remove(Mapper::TABLE_ADMIN_SETTINGS, $row['class']); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please log this so we have a trace that it happened.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
cdf3fce
to
6fd5142
Compare
Codecov Report
@@ Coverage Diff @@
## master #7230 +/- ##
============================================
- Coverage 50.84% 50.84% -0.01%
- Complexity 24547 24548 +1
============================================
Files 1585 1585
Lines 93801 93804 +3
Branches 1354 1354
============================================
Hits 47697 47697
- Misses 46104 46107 +3
|
Backport in #7455 |
This PR cleans up those stale entries and avoids the 500.
Should we maybe backport this to 12?
Fixes #5313
Fixes #5067