Skip to content

[stable30] fix(base.php): Correct order for booting \OC\Server - #51370

Merged
nickvergessen merged 1 commit into
stable30from
backport/51361/stable30
Mar 17, 2025
Merged

[stable30] fix(base.php): Correct order for booting \OC\Server#51370
nickvergessen merged 1 commit into
stable30from
backport/51361/stable30

Conversation

@backportbot

Copy link
Copy Markdown

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>
@blizzzblizzz mentioned this pull request Mar 12, 2025
13 tasks
@solracsfsolracsf added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Mar 14, 2025
@nickvergessen
nickvergessen merged commit 2fd9978 into stable30Mar 17, 2025
@nickvergessen
nickvergessen deleted the backport/51361/stable30 branch March 17, 2025 20:11
@AltahrimAltahrim mentioned this pull request Mar 18, 2025
19 tasks
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4. to releaseReady to be released and/or waiting for tests to finishbug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@nickvergessen@provokateurin@blizzz@solracsf