Client: Reliably persist cookies

Created on 26 Feb 2019  路  9Comments  路  Source: owncloud/client

The client looses cookies after close and reopen. They can be found in the cookies.db but the client doesn't send them.

Expected behaviour

When a Load Balancer or Proxy adds a cookie it should be preserved/send by the client.

Actual behaviour

The cookie is not send to the server after the client got closed and opened again.

Steps to reproduce

  1. introduce cookie via proxy or lb
  2. watch traffic
  3. cookie is lost after quitting and opening client

Please see related discussion in #2808

bug

All 9 comments

@corneliusweiss Thanks for creating the bug, but you really need to provide version numbers etc, else how can we know you are using a current client version?

As @michaelstingl wrote in the comment already:

What client version? What operating system?

@corneliusweiss Are you sure your proxy/loadbalancer is sending a persistant cookie?
http://www.allaboutcookies.org/cookies/cookies-the-same.html
(Although I don't remember how strict is cookies.db about this)

sorry for missing this. I testet with Version 2.5.1 (build 10818) on macOS (is think it's the latest version from autoupdates)

And yes, the cookie is persistent. Here is the sniffed cookie from the lb:
Set-Cookie: be=app03; expires=Wed, 01-Jan-2020 00:00:00 GMT; Max-Age=26491080; path=/

I already played with the path option - but w.o. success

I can reproduce.

@corneliusweiss Want to test a current daily build? https://download.owncloud.com/desktop/daily/

sure, but which is the right one? testpilotclient? which version to test? I need a macOS package.

@guruz works like a charm
Thanks a lot!

Great!

Was this page helpful?
0 / 5 - 0 ratings