+
Skip to content

ModelDuplicateException on next login after deleting an account #39923

@mandritschke

Description

@mandritschke

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

authentication

Describe the bug

I can see a ModelDuplicateException caused by a unique constraint violation (stacktrace.txt) after a user has been deleted.

Version

26.2.4

Regression

  • The issue is a regression

Expected behavior

  • next login with an unrelated user is successful

Actual behavior

  • next login fails with status code 500

How to Reproduce?

  • A user with an active session deletes themselves and then logs out (back channel logout)
  • The browser is redirected to the login page again
  • Another unrelated user attempts to log in through this login page and receives an error with status code 500 and said ModelDuplicateException

Anything else?

Metadata

Metadata

Assignees

Labels

area/storageIndicates an issue that touches storage (change in data layout or data manipulation)kind/bugCategorizes a PR related to a bugpriority/importantMust be worked on very soonrelease/26.3.0team/core-iam

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载