Hyrax: Deleting a user breaks the dashboard reports page if the deleted user owns a work

Created on 4 Feb 2019  路  5Comments  路  Source: samvera/hyrax

Descriptive summary

Hyrax Version: 2.4.1

Rationale

Deleting a user should not break the system or cause any errors.

Expected behavior

Deleting a user that owns works will not change the functionality of the site as a whole.

Actual behavior

Deleting a user (ex. [email protected]) that owns works causes the Reports page to throw an error for all users. From the log file:
ActionView::Template::Error (Unable to find user '[email protected]'...

Steps to reproduce the behavior

  1. Delete a user that owns (deposited their own) works
  2. Go to Dashboard -> Reports
  3. Page throws an error

Related work

Link to related tickets or prior related work here.

bug needs reproduction

Most helpful comment

I am not able to test this directly, but i think the desired behavior we want for core hyrax is:

  • if a user is deleted, the works they have created remain in the repository

@samvera/hyrax-repo-managers thoughts on that?

All 5 comments

To clarify, deleting the user does not delete the work, which is what our use case wants/expects.

I am not able to test this directly, but i think the desired behavior we want for core hyrax is:

  • if a user is deleted, the works they have created remain in the repository

@samvera/hyrax-repo-managers thoughts on that?

We would expect the works to remain in the repository.

I was able to delete the user via the sqlite interface ( since there is not UI interface to delete users presently ). The report page showed up without any errors, and the work created by the just deleted user remained in the repository.

Can't be reproduced on Nurax. UNC will look into this.

Was this page helpful?
0 / 5 - 0 ratings