Skip to content

Comments

Fix/more missing userid cases#58144

Merged
salmart-dev merged 2 commits intomasterfrom
fix/more-missing-userid-cases
Feb 19, 2026
Merged

Fix/more missing userid cases#58144
salmart-dev merged 2 commits intomasterfrom
fix/more-missing-userid-cases

Conversation

@salmart-dev
Copy link
Contributor

@salmart-dev salmart-dev commented Feb 6, 2026

Summary

Sets the user id header in DAV responses in beforeMethod instead of afterMethod, this ensures that if some plugins stop the event propagation, the user id header will still be set.

Adds the same header in the redirect response when calling GET /index.php which redirects to the default app.

Checklist

Signed-off-by: Salvatore Martire <4652631+salmart-dev@users.noreply.github.com>
Signed-off-by: Salvatore Martire <4652631+salmart-dev@users.noreply.github.com>
@salmart-dev salmart-dev added this to the Nextcloud 34 milestone Feb 6, 2026
@salmart-dev salmart-dev self-assigned this Feb 6, 2026
@salmart-dev salmart-dev requested a review from a team as a code owner February 6, 2026 19:28
@salmart-dev salmart-dev added bug 3. to review Waiting for reviews labels Feb 6, 2026
@salmart-dev salmart-dev requested review from Altahrim, ArtificialOwl, come-nc and icewind1991 and removed request for a team February 6, 2026 19:28
@salmart-dev
Copy link
Contributor Author

/backport to stable33

@salmart-dev
Copy link
Contributor Author

/backport to stable32

@salmart-dev
Copy link
Contributor Author

/backport to stable31

@salmart-dev
Copy link
Contributor Author

/backport to stable30

@salmart-dev salmart-dev merged commit 238e459 into master Feb 19, 2026
207 of 213 checks passed
@salmart-dev salmart-dev deleted the fix/more-missing-userid-cases branch February 19, 2026 14:27

public function initialize(\Sabre\DAV\Server $server): void {
$server->on('afterMethod:*', [$this, 'afterMethod']);
$server->on('beforeMethod:*', [$this, 'beforeMethod']);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
$server->on('beforeMethod:*', [$this, 'beforeMethod']);
$server->on('beforeMethod:*', $this->beforeMethod(...));

For the next time ;)

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.

5 participants