Skip to content
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

[stable21] Harden bootstrap context registrations when apps are missing #27681

Merged
merged 1 commit into from
Aug 31, 2021

Conversation

backportbot-nextcloud[bot]
Copy link

@backportbot-nextcloud backportbot-nextcloud bot commented Jun 25, 2021

⚠️ This backport had conflicts and is incomplete ⚠️

backport of #27668

@nickvergessen nickvergessen added the 2. developing Work in progress label Jun 29, 2021
@blizzz blizzz mentioned this pull request Jul 1, 2021
10 tasks
@skjnldsv
Copy link
Member

skjnldsv commented Jul 1, 2021

cc @ChristophWurst

@skjnldsv skjnldsv mentioned this pull request Jul 26, 2021
14 tasks
@skjnldsv skjnldsv mentioned this pull request Aug 3, 2021
12 tasks
@ChristophWurst ChristophWurst force-pushed the backport/27668/stable21 branch 3 times, most recently from e6803f1 to 9561433 Compare August 13, 2021 14:09
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>
Copy link
Contributor

@szaimen szaimen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CI is green 👍

@ChristophWurst ChristophWurst merged commit 2ce22c7 into stable21 Aug 31, 2021
@ChristophWurst ChristophWurst deleted the backport/27668/stable21 branch August 31, 2021 10:14
@blizzz blizzz mentioned this pull request Sep 23, 2021
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2. developing Work in progress bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants