Skip to content

auth_ saml database stuck #892

@AfmirSC

Description

@AfmirSC

Module

auth_saml

Describe the bug

Database locks when trying to signin

To Reproduce

Affected versions: 18.0

Steps to reproduce the behavior:

  1. Create a user in Odoo
  2. Add saml configuration lines
  3. Create an employee linked to the user
  4. Try to sign in by the user

Expected behavior
Sign in should be successful

Observed behaviour
Sign in is blocked, Odoo loads indefinitely, and I don't see Login successful in the logs

Additional context
After debugging, I noticed that the signin process is blocking in the _login method at server.odoo.addons.base.models.res_users.Users._login, when I comment user.tz = tz it works fine.

Also, when I run the SQL command to view database locks, I have the query of tz update in res.partner, so it makes sense.

So I doubt maybe it's a cursor issue, but I'm not sure.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions