Skip to content

Comments

[16.0][FIX] session_redis: add incompatibility to auth_session_timeout#491

Merged
SilvioC2C merged 3 commits into16.0from
16.0-fix-session_redis
May 8, 2025
Merged

[16.0][FIX] session_redis: add incompatibility to auth_session_timeout#491
SilvioC2C merged 3 commits into16.0from
16.0-fix-session_redis

Conversation

@SilvioC2C
Copy link
Contributor

Forward-port of #488 and #489

@codecov-commenter
Copy link

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 36.42%. Comparing base (5b03cc4) to head (28c1b02).
Report is 5 commits behind head on 16.0.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             16.0     #491      +/-   ##
==========================================
+ Coverage   36.05%   36.42%   +0.37%     
==========================================
  Files          33       37       +4     
  Lines         760      829      +69     
  Branches      106      107       +1     
==========================================
+ Hits          274      302      +28     
- Misses        480      521      +41     
  Partials        6        6              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

SilvioC2C added 3 commits May 8, 2025 11:23
``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.
@SilvioC2C SilvioC2C force-pushed the 16.0-fix-session_redis branch from 28c1b02 to da0897b Compare May 8, 2025 09:24
@SilvioC2C SilvioC2C merged commit 627975b into 16.0 May 8, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants