Skip to content

Commit 606a72e

Browse files
committed
[FIX] session_redis: add incompatibility to auth_session_timeout
``session_redis`` is not compatible with ``auth_session_timeout``. ``session_redis`` overrides property ``odoo.http.Application.session_store`` by returning a ``RedisSessionStore`` object instead of a ``odoo.http.FilesystemSessionStore`` object. ``auth_session_timeout`` expects ``odoo.http.Application.session_store`` object to define method ``get_session_filename()``, which does not exist for ``RedisSessionStore`` objects. This results in an ``AttributeError`` that prevents user authentication, and Odoo becomes inaccessible.
1 parent cd63dd5 commit 606a72e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

session_redis/__manifest__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010
"license": "AGPL-3",
1111
"category": "Extra Tools",
1212
"depends": ["base"],
13+
"excludes": [
14+
# OCA/server-auth
15+
"auth_session_timeout",
16+
],
1317
"external_dependencies": {
1418
"python": ["redis"],
1519
},

0 commit comments

Comments
 (0)