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

[stable31] fix(base.php): Correct order for booting \OC\Server #51371

Merged
merged 1 commit into from
Mar 17, 2025

Conversation

backportbot[bot]
Copy link

@backportbot backportbot bot commented Mar 10, 2025

Backport of PR #51361

A recent change had broken authentication with an older
FastCGI Apache2 module, because the IRequest object got
initialised before the fix from self::handleAuthHeaders()
copied the authentication headers into the correct $_SERVER
variables.
Since this part is completely independent from any Nextcloud
code it is now done as a first thing within the init() call.

Additionally similar issues could happen when another class
would boot too early and read other global PHP settings like
ini values and default timezone, so those are now also moved
to the beginning.

Signed-off-by: Joas Schilling <coding@schilljs.com>
@backportbot backportbot bot added bug 3. to review Waiting for reviews labels Mar 10, 2025
@backportbot backportbot bot added this to the Nextcloud 31.0.1 milestone Mar 10, 2025
@blizzz blizzz mentioned this pull request Mar 12, 2025
14 tasks
@nickvergessen nickvergessen merged commit 550bf27 into stable31 Mar 17, 2025
183 of 188 checks passed
@nickvergessen nickvergessen deleted the backport/51361/stable31 branch March 17, 2025 20:11
@Altahrim Altahrim mentioned this pull request Mar 18, 2025
20 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants