You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When trying to save a new workflow with the title of an already existing workflow, an error message is added to the internal logging files. On the frontend however, no corresponding message is displayed to the user. Instead, the user is redirected to the worfklow list and it seems like the workflow has been saved correctly.
To Reproduce
Steps to reproduce the behavior:
Go to the "Workflows" tab on the "Projects" list page
Create new workflow
Add the title of an already existing workflow
Click save
Expected behavior
When the user tries to save a new workflow with the title of an existing workflow, an corresponding error message should be displayed and the browser should stay in the workflow editor instead of redirecting the user to the workflow list.
[ERROR] 2024-12-19 08:54:53.600 [http-nio-8080-exec-4] WorkflowForm - org.kitodo.data.database.exceptions.DAOException: org.hibernate.exception.ConstraintViolationException: could not execute statement
org.kitodo.data.exceptions.DataException: org.kitodo.data.database.exceptions.DAOException: org.hibernate.exception.ConstraintViolationException: could not execute statement
at org.kitodo.production.services.data.base.SearchService.save(SearchService.java:302) ~[classes/:?]
at org.kitodo.production.forms.WorkflowForm.saveWorkflow(WorkflowForm.java:331) ~[classes/:?]
at org.kitodo.production.forms.WorkflowForm.saveAndRedirect(WorkflowForm.java:151) ~[classes/:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
The text was updated successfully, but these errors were encountered:
Describe the bug
When trying to save a new workflow with the title of an already existing workflow, an error message is added to the internal logging files. On the frontend however, no corresponding message is displayed to the user. Instead, the user is redirected to the worfklow list and it seems like the workflow has been saved correctly.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
When the user tries to save a new workflow with the title of an existing workflow, an corresponding error message should be displayed and the browser should stay in the workflow editor instead of redirecting the user to the workflow list.
Release
3.7.x, 3.8.x, main branch
Additional context
Similar to #6281
(partial) stack trace from log file:
The text was updated successfully, but these errors were encountered: