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

Set special header for 503 maintenance mode #33173

Merged
merged 1 commit into from
Aug 10, 2022

Conversation

ChristophWurst
Copy link
Member

This removes ambiguity with a 503 returned by Nextcloud maintenance mode, some app's code, web server, proxy or
similar. Front-end and clients can then handle this state accordingly.

This will be helpful for nextcloud/mail#5714.

lib/base.php Outdated Show resolved Hide resolved
Copy link
Contributor

@vitormattos vitormattos left a comment

Choose a reason for hiding this comment

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

This will be very good to give a best feedback in integration tests of apps too.

Could implement tests in this PR to validate if this is working fine?

@ChristophWurst
Copy link
Member Author

Could implement tests in this PR to validate if this is working fine?

I would love to but this is base.php, the possibly most untestable piece of code :)

This removes ambiguity with a 503 returned by app code, web server or
similar. Front-end and clients can then handle this state accordingly.

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
@marcelklehr
Copy link
Member

If this is merged, it would be nice to also have docs :)

@ChristophWurst ChristophWurst merged commit d17e069 into master Aug 10, 2022
@ChristophWurst ChristophWurst deleted the enhancement/maintenance-mode-http-header branch August 10, 2022 07:16
@ChristophWurst
Copy link
Member Author

ChristophWurst commented Aug 10, 2022

If this is merged, it would be nice to also have docs :)

yes, but where? We have docs for OCS but nothing else that would cover related topics 🤷

Edit: opened nextcloud/documentation#9129. maybe I find a place another day

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

6 participants