Skip to content

Conversation

@juliusknorr
Copy link
Member

@juliusknorr juliusknorr commented Nov 22, 2022

This PR will make sure that whenever a session is being reused during login we properly clean up the dav session data which is only required to prioritise basic auth over the session login on WebDAV. (ref owncloud/core#13245)

We can safely reset this if the session id is being regenerated during login.

The issue never occurred in the wild as far as I can see but was just a side effect of the cypress tests in viewer that reused the cookie jar that was used for userA webdav requests to run a login and e2e test for userB.

See #34934 (comment) for more technical insights.

Signed-off-by: Julius Härtl <jus@bitgrid.net>
@juliusknorr juliusknorr requested review from a team, ArtificialOwl, PVince81, blizzz, icewind1991 and skjnldsv and removed request for a team November 22, 2022 07:51
@juliusknorr juliusknorr added bug 3. to review Waiting for reviews labels Nov 22, 2022
@juliusknorr juliusknorr added this to the Nextcloud 26 milestone Nov 22, 2022
Copy link
Member

@PVince81 PVince81 left a comment

Choose a reason for hiding this comment

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

👍 makes sense

@skjnldsv
Copy link
Member

Do we have a list of all those fancy session constants?

@skjnldsv skjnldsv merged commit 7f6e22c into master Nov 22, 2022
@skjnldsv skjnldsv deleted the bugfix/noid/avoid-conflicting-session-data branch November 22, 2022 09:04
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.

4 participants