kitodo-production
kitodo-production copied to clipboard
Cannot filter for workflow steps whose names contain spaces in parenthesis
Describe the bug The process list can be filtered based on workflow steps (stepopen, stepclosed). If the steps name contains space characters within parenthesis, the list is not filtered based on the name but all processes (from the current project in case one is selected) are shown.
To Reproduce Steps to reproduce the behavior:
- Create a new workflow with at least three steps, give the last one a name containing parenthesis with multiple words or a space character within „Ein guter Schritt (er ist gut)“. Assign the workflow to a project and create a process for the workflow.
- Go to the process list and filter for processes with the second workflow step open by name (which does not contain a space character inside parenthesis).
- Confirm that the process is not listed as the second step is not open.
- Filter for processes with the step open whose name contains a space character in parenthesis.
- See the process (and any other processes) listed although the step is not open.
Expected behavior Steps containing a space character in parenthesis should only be displayed if the step is actually open if a filter for an open steps is applied. All other processes besides the ones with the step containing a space character in parenthesis should not be displayed.
Screenshots
Release 3.6.0 and 3.6.1
Desktop (please complete the following information):
- OS: Kubuntu
- Browser: Firefox
- Version: 122.0
Additional context We assume the string is not passed correctly to ElasticSearch. If this is an underlying issue on side of ElasticSearch this could be resolved through the move to Hibernate Search.