Skip to content

Restarting an user session broken for persistent sessions #43161

@pruivo

Description

@pruivo

Before reporting an issue

  • 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

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions