kitodo / kitodo-production

Kitodo.Production is a workflow management tool for mass digitization and is part of the Kitodo Digital Library Suite.
http://www.kitodo.org/software/kitodoproduction/
GNU General Public License v3.0
64 stars 63 forks source link

Process title rules not validated during process creation #6055

Open solth opened 6 months ago

solth commented 6 months ago

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