Skip to content

[18.0][FIX] session_db: revoking and cleanup of user devices#3662

Merged
OCA-git-bot merged 2 commits into
OCA:18.0from
tarteo:18-fix-session-db
Jul 1, 2026
Merged

[18.0][FIX] session_db: revoking and cleanup of user devices#3662
OCA-git-bot merged 2 commits into
OCA:18.0from
tarteo:18-fix-session-db

Conversation

@tarteo

@tarteo tarteo commented Jun 24, 2026

Copy link
Copy Markdown
Member

For lack of a contributor section I've added my company to the authors key.

Fixes: #3661

@OCA-git-bot

Copy link
Copy Markdown
Contributor

Hi @sbidoul,
some modules you are maintaining are being modified, check this out!

@sbidoul

sbidoul commented Jun 24, 2026

Copy link
Copy Markdown
Member

@tarteo thanks! There was also #3415 addressing this I think, can you check the state of that one and if it is relevant?

I'm just back from holidays, so no time to dig into this right now.

About author, please add a CONTRIBUTORS.md, if you don't mind.

@tarteo tarteo force-pushed the 18-fix-session-db branch from b82d985 to 216e6e7 Compare June 24, 2026 11:40
@tarteo

tarteo commented Jun 24, 2026

Copy link
Copy Markdown
Member Author

@lal-solute do you want to be added to contributors as well? If so, please let me know what you want me to add to the CONTRIBUTORS.md

@tarteo

tarteo commented Jun 24, 2026

Copy link
Copy Markdown
Member Author

@sbidoul perfect, I'll backport that instead for consistency and apply my added tests upon that.

Comment thread session_db/readme/CONTRIBUTORS.md
@tarteo tarteo force-pushed the 18-fix-session-db branch 2 times, most recently from 45e72d0 to 2513426 Compare June 24, 2026 13:14
… 19.0)

[IMP] Add tests to test res.device with PGSessionStore
Comment thread session_db/pg_session_store.py Outdated
raise ValueError(
"Identifier format incorrect, "
"did you pass in a string instead of a list?"
)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Odoo does continue instead of raise in such case. Should we do the same here?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yes I wondered why we would need to check the format: #3415 (comment)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Do you know the reason?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

There is a comment in the same function in Odoo explaining why, IIRC. A security protection.

@sbidoul

sbidoul commented Jul 1, 2026

Copy link
Copy Markdown
Member

/ocabot merge patch

@OCA-git-bot

Copy link
Copy Markdown
Contributor

This PR looks fantastic, let's merge it!
Prepared branch 18.0-ocabot-merge-pr-3662-by-sbidoul-bump-patch, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 75f7603 into OCA:18.0 Jul 1, 2026
7 checks passed
@OCA-git-bot

Copy link
Copy Markdown
Contributor

Congratulations, your PR was merged at 54ec915. Thanks a lot for contributing to OCA. ❤️

@sbidoul

sbidoul commented Jul 1, 2026

Copy link
Copy Markdown
Member

Thanks @tarteo! Do you plan to forward port?

@tarteo

tarteo commented Jul 1, 2026

Copy link
Copy Markdown
Member Author

@sbidoul In 19.0 get_missing_session_identifiers and delete_from_identifiers already there, but I can port the tests to 19.0 and add the contributor file if you want, please let met know.

@sbidoul

sbidoul commented Jul 1, 2026

Copy link
Copy Markdown
Member

Aah, yes. And it looks like I had implemented myself, and there are tests for that already :) Sorry for the noise. All good then, thanks for your help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[18.0] session_db: Error when using user devices.

3 participants