Commit Graph
11 Commits
Author SHA1 Message Date
Yannick VaucherandGitHub 43bbbe9822 Merge pull request #33 from yvaucher/fix-check-session_token
Fix session check crash due to odoo recent change [1]
2018-04-09 14:41:35 +02:00
Yannick Vaucher 697f5ae58f Fix session check crash due to odoo recent change [1]
Odoo introduced a token on 2018-03-19, this token is
used for checking the rights.

The token itself is generated from data as a hash.
The redis_session module handle it correctly by saving it aside other
data in json format. Nevertheless, when reading it, from json format,
it forces all strings to unicode whereas some dumped string where str.

Thus it fails on comparison between str and unicode.

This fix solves it by always using token in unicode format.

[1] https://github.com/odoo/odoo/pull/22612
2018-04-05 18:57:31 +02:00
Guewen Baconnier bd423e1658 Fix order of args in logs 2018-03-13 15:01:16 +01:00
Guewen Baconnierandjcoux d0afebfa4b Expire sessions generated by health checks quickly
The default expiration of sessions is 7 days. With healthchecks run
every few seconds, we quickly have millions of anonymous sessions in
Redis. Allow to define a custom expiration for some sessions and set a
very short one for the monitoring requests.
2018-01-11 08:24:45 +01:00
Guewen Baconnier c7240e1fe1 Allow to use a Redis Sentinel 2017-05-16 09:07:59 +02:00
Guewen Baconnier 8e4b461c75 Migrate addons to 10.0 2016-12-21 21:29:09 +01:00
Guewen Baconnier 022f9003e8 Add debug logs in session_redis 2016-12-14 11:25:12 +01:00
Guewen Baconnier 92880deeab Explicit session_redis must be started in --load 2016-11-10 16:14:19 +01:00
Guewen Baconnier 3c8b74369b Make pylint happy 2016-11-03 16:58:36 +01:00
Guewen Baconnier b5f00c26dc Fix pep8 2016-11-02 10:29:02 +01:00
Guewen Baconnier 63daa99cdd Add session_redis 2016-10-24 17:12:27 +02:00