From 729b2762ee4d187b3ee43318df70a523afc8b695 Mon Sep 17 00:00:00 2001 From: SilvioC2C Date: Thu, 8 May 2025 11:13:18 +0200 Subject: [PATCH 1/2] [FIX] pre-commit: fix deprecated GH action --- .github/workflows/pre-commit.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index c58f629..7c4a715 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -19,7 +19,7 @@ jobs: python-version: "3.11" - name: Get python version run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV - - uses: actions/cache@v1 + - uses: actions/cache@v4 with: path: ~/.cache/pre-commit key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }} From 64b1240023b46f84ea4f76e2eb37aa9def9ff3cc Mon Sep 17 00:00:00 2001 From: SilvioC2C Date: Thu, 8 May 2025 11:13:47 +0200 Subject: [PATCH 2/2] [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. --- session_redis/__manifest__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/session_redis/__manifest__.py b/session_redis/__manifest__.py index 45d32e2..61dc2e9 100644 --- a/session_redis/__manifest__.py +++ b/session_redis/__manifest__.py @@ -10,6 +10,10 @@ "license": "AGPL-3", "category": "Extra Tools", "depends": ["base"], + "excludes": [ + # OCA/server-auth + "auth_session_timeout", + ], "external_dependencies": { "python": ["redis"], },