Skip to content

Commit

Permalink
Merge pull request #49406 from nextcloud/avoidStatusSessions
Browse files Browse the repository at this point in the history
fix(status): Avoid session creation for status requests
  • Loading branch information
nickvergessen authored Nov 22, 2024
2 parents 38a8547 + 33d7019 commit c9bd003
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/base.php
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,13 @@ private static function printUpgradePage(\OC\SystemConfig $systemConfig): void {
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.
Expand Down

0 comments on commit c9bd003

Please sign in to comment.