]> source.dussan.org Git - nextcloud-server.git/commit
Harden bootstrap context registrations when apps are missing 27681/head
authorChristoph Wurst <christoph@winzerhof-wurst.at>
Fri, 25 Jun 2021 06:25:37 +0000 (08:25 +0200)
committerChristoph Wurst <christoph@winzerhof-wurst.at>
Tue, 31 Aug 2021 07:57:27 +0000 (09:57 +0200)
commite3ae5571d50cab64add9b7bfc7aeeefcc5729776
tree2b0d6ab927724d66e165bda5ac05f653cfcb3cd6
parent249e19b65c26adc86624c9ded62b4887f5bc8262
Harden bootstrap context registrations when apps are missing

It's not expected that an app would be unavailable when the app
container is created but when services are registered, but Sentry tells
me on Nextcloud 21 there is an edge case where this can happen.
Therefore this patch hardens the code a bit to log a meaningful error
message and skipping the next code instead of logging a php notice for
the undefined index and an exception for calling a method on null.

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
lib/private/AppFramework/Bootstrap/RegistrationContext.php