Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't delete user if entry in passwordresetdata #5281

Closed
barryrowlingson opened this issue Nov 6, 2018 · 2 comments
Closed

can't delete user if entry in passwordresetdata #5281

barryrowlingson opened this issue Nov 6, 2018 · 2 comments
Labels
Feature: Account & User Info Type: Bug a defect User Role: Sysadmin Installs, upgrades, and configures the system, connects via ssh

Comments

@barryrowlingson
Copy link

Trying to delete a test username via:

curl -X DELETE -v http://localhost:8080/api/admin/authenticatedUsers/testuser

and get a 500 internal server error returned. In the logs:

org.postgresql.util.PSQLException: ERROR: update or delete on table "builtinuser" violates foreign key constraint "fk_passwordresetdata_builtinuser_id" on table "passwordresetdata"
  Detail: Key (id)=(3) is still referenced from table "passwordresetdata".

which I guess is because there's a pending password reset still valid. I can't see any reason to keep the password reset info around if deleting a user, so the delete should cascade to that table.

Workaround is to delete the corresponding row from the passwordresetdata table via psql, and then the curl works.

@pdurbin
Copy link
Member

pdurbin commented Nov 6, 2018

@pdurbin pdurbin added Type: Bug a defect Feature: Account & User Info User Role: Sysadmin Installs, upgrades, and configures the system, connects via ssh labels Oct 10, 2022
@cmbz
Copy link

cmbz commented Aug 20, 2024

To focus on the most important features and bugs, we are closing issues created before 2020 (version 5.0) that are not new feature requests with the label 'Type: Feature'.

If you created this issue and you feel the team should revisit this decision, please reopen the issue and leave a comment.

@cmbz cmbz closed this as completed Aug 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature: Account & User Info Type: Bug a defect User Role: Sysadmin Installs, upgrades, and configures the system, connects via ssh
Projects
None yet
Development

No branches or pull requests

3 participants