Uploaded image for project: 'Red Hat build of Keycloak'
  1. Red Hat build of Keycloak
  2. RHBK-3595

Restarting an user session broken for persistent sessions [GHI#43161]

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False

      Before reporting an issue

      [x] I have read and understood the above terms for submitting issues, and I understand that my issue may be closed without action if I do not follow them.

      Area

      infinispan

      Describe the bug

      The UserSessionModel#restartSession method does not work with persistent user sessions. It has the following problems:

      • The start timestamp must be reset, and it isn't
      • The existing client sessions must be removed from the database.

      Version

      main

      Regression

      [ ] The issue is a regression

      Expected behavior

      It is expected that the database will be updated.

      Actual behavior

      The database is not updated.

      How to Reproduce?

      Run UserSessionProviderTest with multi-site. As multi-site does not use any caching, it reveals the problem.

      Anything else?

      No response

              Unassigned Unassigned
              pvlha Pavel Vlha
              Keycloak SRE
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: