Skip to content

cookie_test path prevents clients to resend #26651

Closed

Description

@PVince81

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.

Activity

  1. added this to the milestone on Nov 18, 2016
  2. self-assigned this
    on Nov 18, 2016
  3. PVince81 commented on Nov 30, 2016

    @PVince81
    ContributorAuthor

    This will need backporting to 9.1 as we introduced cookie_test there I think

  4. modified the milestones: 9.1.4, on Nov 30, 2016
  5. davivel commented on Dec 7, 2016

    @davivel

    We need to make sure that the desktop client and mobile clients properly send "cookie_test" when it's there. @ogoffart @guruz @davivel

    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.

  6. PVince81 commented on Dec 8, 2016

    @PVince81
    ContributorAuthor

    @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.

  7. davivel commented on Dec 9, 2016

    @davivel

    @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 ?

    True only for Android client.

    In my scope right now: owncloud/android#1841

  8. modified the milestones: 9.1.5, 9.1.4 on Feb 6, 2017
  9. PVince81 commented on Mar 31, 2017

    @PVince81
    ContributorAuthor

    Potential fix here: #27549

    Fixes the path and secure flag, please help testing.

  10. assigned and unassigned on Mar 31, 2017
  11. 16 remaining items

  12. ownclouders commented on Mar 9, 2018

    @ownclouders
    Contributor

    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.

    (This is an automated comment from GitMate.io.)

  13. removed their assignment
    on Sep 5, 2019
  14. stale commented on Sep 21, 2021

    @stale

    This issue has been automatically closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions