Merge pull request #49406 from nextcloud/avoidStatusSessions

fix(status): Avoid session creation for status requests
This commit is contained in:
Joas Schilling 2024-11-22 10:41:31 +01:00 committed by GitHub
commit c9bd0039f1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -363,6 +363,13 @@ class OC {
public static function initSession(): void {
$request = Server::get(IRequest::class);
// Do not initialize sessions for 'status.php' requests
// Monitoring endpoints can quickly flood session handlers
// and 'status.php' doesn't require sessions anyway
if (str_ends_with($request->getScriptName(), '/status.php')) {
return;
}
// TODO: Temporary disabled again to solve issues with CalDAV/CardDAV clients like DAVx5 that use cookies
// TODO: See https://github.com/nextcloud/server/issues/37277#issuecomment-1476366147 and the other comments
// TODO: for further information.