You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
cookie_test path prevents clients to resend #26651
As observed with @ogoffart, the "cookie_test" cookie doesn't have a correct path so the desktop client doesn't resend that cookie to the server.
This will make the server believe that this client doesn't support cookies and will recreate a session for every request. (I believe that the original purpose was that it tries to reuse the same session if a device token is used, not sure).
We need to make sure that the desktop client and mobile clients properly send "cookie_test" when it's there. @ogoffart@guruz@davivel
If the path of the cookie needs to be adjusted we can do that on the server.
@PhilippSchaffrath since you're diving into auth code you might be able to find out why "cookie_test" is needed at all and what kind of logic is used if no cookies are supported.
@davivel if cookies were always ignored so far it means that the mobile clients "do not support cookies" and anyway recreate a new session for every call ? So if you do add cookie / session keeping support, then you'll need to also send back the "cookie_test" so that the server knows that you do.
@davivel if cookies were always ignored so far it means that the mobile clients "do not support cookies" and anyway recreate a new session for every call ?
Hey, this issue has been closed because the label status/STALE is set and there were no updates for 7 days. Feel free to reopen this issue if you deem it appropriate.
Activity
PVince81 commentedon Nov 30, 2016
This will need backporting to 9.1 as we introduced cookie_test there I think
davivel commentedon Dec 7, 2016
In Android, right now, sure that not, since cookies are ignored unless SAML is enabled.
Apart of that, cookie handling is delegated to the network library in the mobile apps. We'll need to debug this to find out.
PVince81 commentedon Dec 8, 2016
@davivel if cookies were always ignored so far it means that the mobile clients "do not support cookies" and anyway recreate a new session for every call ? So if you do add cookie / session keeping support, then you'll need to also send back the "cookie_test" so that the server knows that you do.
davivel commentedon Dec 9, 2016
True only for Android client.
In my scope right now: owncloud/android#1841
PVince81 commentedon Mar 31, 2017
Potential fix here: #27549
Fixes the path and secure flag, please help testing.
16 remaining items
ownclouders commentedon Mar 9, 2018
Hey, this issue has been closed because the label
status/STALEis set and there were no updates for 7 days. Feel free to reopen this issue if you deem it appropriate.(This is an automated comment from GitMate.io.)
stale commentedon Sep 21, 2021
This issue has been automatically closed.