The system doesn't seem to check whether there are dependencies on a role or client when deleting it:
In the UI, if I want to delete a role or client that still has other things depending on it, the UI stalls showing the throbber. In the UI no error message or hint is shown.
In the tomcat logs an exception like that one is logged:
Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Cannot delete or update a parent row: a foreign key constraint fails (kitodo.project, CONSTRAINT FK_project_client_id FOREIGN KEY (client_id) REFERENCES client (id))
After reloading the user page, if I first delete all the dependencies, then the role/client deletion works correctly.
The system doesn't seem to check whether there are dependencies on a role or client when deleting it:
In the UI, if I want to delete a role or client that still has other things depending on it, the UI stalls showing the throbber. In the UI no error message or hint is shown. In the tomcat logs an exception like that one is logged:
Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Cannot delete or update a parent row: a foreign key constraint fails (kitodo.project, CONSTRAINT FK_project_client_id FOREIGN KEY (client_id) REFERENCES client (id))
After reloading the user page, if I first delete all the dependencies, then the role/client deletion works correctly.