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
This commit is contained in:
Yannick Vaucher
2018-04-05 18:57:31 +02:00
parent aaf56d5027
commit 697f5ae58f
4 changed files with 22 additions and 1 deletions
+1 -1
View File
@@ -5,7 +5,7 @@
{'name': 'Sessions in Redis',
'summary': 'Store web sessions in Redis',
'version': '10.0.1.0.0',
'version': '10.0.1.0.1',
'author': 'Camptocamp,Odoo Community Association (OCA)',
'license': 'AGPL-3',
'category': 'Extra Tools',