kitodo-production icon indicating copy to clipboard operation
kitodo-production copied to clipboard

Process title rules not validated during process creation

Open solth opened this issue 1 year ago • 0 comments

Describe the bug Process titles in Kitodo.Production are not allowed to contain white spaces or other non-alphanumerical special characters apart from underscore ("_") and hyphen ("-") because the process title is used as a folder name during export. These constraints are validated when editing a process (see first screenshot below). However, the same rules are not enforced when creating a process. This leads to processes with invalid titles that can (and will) produce errors during export. (second screenshot)

To Reproduce Steps to reproduce the behavior:

  1. Create a process using the "New process" form
  2. Manually enter a process title containing spaces
  3. Save the new process
  4. See the invalid process title

Expected behavior The process title rules should be checked during process creation as well.

Screenshots Invalid process titles are prevented when editing a process: Bildschirmfoto 2024-04-29 um 14 05 47

Invalid process titles are NOT prevented when creating a process: Bildschirmfoto 2024-04-29 um 14 06 59

Release Current master (3.7.0-SNAPSHOT) and all versions of 3.6.x

solth avatar Apr 29 '24 12:04 solth