nextcloud/lib/private/App
nfebe d4dccb2ff6 feat(apps): Make app enabling atomic
Previously, if an app failed during its enabling process,
it could leave the instance in a broken state. This was
because the app was marked as enabled before its
initialization code was executed, but the state was not
rolled back upon failure.

This change wraps the app enabling logic in a try/catch
block. If the app's initialization fails, the 'enabled'
state is reverted in the database, and the in-memory
app cache is cleared. This ensures that a faulty app
cannot take down the entire Nextcloud instance.

Signed-off-by: nfebe <fenn25.fn@gmail.com>
2025-11-19 10:32:37 +01:00
..
AppStore Merge pull request #55420 from nextcloud/fix/40082/appstore-timeout 2025-09-30 17:18:37 +02:00
AppManager.php feat(apps): Make app enabling atomic 2025-11-19 10:32:37 +01:00
CompareVersion.php chore: Add SPDX header 2024-05-24 13:11:22 +02:00
DependencyAnalyzer.php fix: Deduplicate code by using DependencyAnalyzer in the AppManager 2025-08-18 17:09:40 +02:00
InfoParser.php feat: Add admin-delegation-section as well for completeness 2025-09-28 14:50:15 +02:00
Platform.php chore: apply new CSFixer rules 2025-07-01 16:26:50 +02:00
PlatformRepository.php chore: apply new CSFixer rules 2025-07-01 16:26:50 +02:00