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

fix(base.php): Correct order for booting \OC\Server #51361

Merged
merged 1 commit into from
Mar 10, 2025

Conversation

nickvergessen
Copy link
Member

Summary

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.

Checklist

@nickvergessen nickvergessen added bug 3. to review Waiting for reviews labels Mar 10, 2025
@nickvergessen nickvergessen added this to the Nextcloud 32 milestone Mar 10, 2025
@nickvergessen nickvergessen self-assigned this Mar 10, 2025
@nickvergessen nickvergessen requested a review from a team as a code owner March 10, 2025 05:58
@nickvergessen nickvergessen requested review from ArtificialOwl, artonge and provokateurin and removed request for a team March 10, 2025 05:58
@nickvergessen
Copy link
Member Author

/backport to stable31

@nickvergessen
Copy link
Member Author

/backport to stable30

@nickvergessen
Copy link
Member Author

/backport to stable29

@nickvergessen
Copy link
Member Author

/backport to stable28

@nickvergessen
Copy link
Member Author

/backport to stable27

@nickvergessen
Copy link
Member Author

/backport to stable26

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>
@nickvergessen nickvergessen force-pushed the bugfix/50619/correctly-init-server branch from 96cb844 to 34bcc53 Compare March 10, 2025 05:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Can't login from iOS client app
4 participants