mirror of
https://github.com/camptocamp/odoo-cloud-platform.git
synced 2026-06-23 18:04:34 +00:00
[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.
This commit is contained in:
@@ -10,6 +10,10 @@
|
|||||||
"license": "AGPL-3",
|
"license": "AGPL-3",
|
||||||
"category": "Extra Tools",
|
"category": "Extra Tools",
|
||||||
"depends": ["base"],
|
"depends": ["base"],
|
||||||
|
"excludes": [
|
||||||
|
# OCA/server-auth
|
||||||
|
"auth_session_timeout",
|
||||||
|
],
|
||||||
"external_dependencies": {
|
"external_dependencies": {
|
||||||
"python": ["redis"],
|
"python": ["redis"],
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user