Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@sbidoul
Copy link
Member

@sbidoul sbidoul commented Oct 11, 2025

No description provided.

nseinlet and others added 30 commits October 10, 2025 15:54
The upstream FilesystemSessionStore does not do that.
Retry on OperationalError exception, which we receive on database restart.
Return cursor to pool when reconnecting.
There were concurrency issues in evented mode.
So while I was at it, I added support for threaded mode too.
If the connection to the database fails when
retrying a session operation, we end up
with no cursore, which makes subsequent
session operations fail.

We fix this by ensuring we have cursor
before any operations.
…gument 'max_lifetime'" when autovacuum gets executed.

Signed-off-by: Christoph Fiehe <[email protected]>
It has been implemented.
lal-solute and others added 2 commits October 11, 2025 12:44
with the parameter "login" in `_make_postgres_uri()` it becomes impossible to log in with the configured database, as it has to have the name "user". This is because of passing the `connection_info` dict as keywords parameter into the function. But because `connection_info_for` called in `setUp()` reads the config file of odoo and there the database user is `db_user` the keyword parameter is discarded and `login` is not set. The `db_`-prefix is removed. So user and password are not applied to the uri/dsn and thus login to the database is not possible, if the database wants those parameters.

When I applied this change in our internal CI of solute.de, everything worked fine afterwards.

This has to be ported to 17.0 and 18.0 as well.
@sbidoul sbidoul force-pushed the 19.0-mig-session_db-sbi branch from 0be1123 to b53d0a0 Compare October 11, 2025 10:44
@sbidoul sbidoul mentioned this pull request Oct 11, 2025
38 tasks
Copy link
Member

@FrancoMaxime FrancoMaxime left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM: code review

"did you pass in a string instead of a list?"
)
self._cr.execute(
"DELETE FROM http_sessions WHERE sid LIKE %s||'%%'", (identifier,)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would not be correct if identifier can contain a % but I don't think that is possible?

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.

7 participants