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

Updating SearchFields in new ImportConfigurations is bugged

Open solth opened this issue 3 years ago • 0 comments

Describe the bug When adding SearchFields to a new ImportConfiguration (not yet saved to the database), updating a search field does not just update the label and value of the updated field, but of all fields, which in turn leads to an java.lang.IllegalStateException with error message Duplicate key.

To Reproduce Steps to reproduce the behavior:

  1. Go to page 'Projects'
  2. Create a new 'ImportConfiguration'
  3. Add two search fields
  4. Edit the second search field and click 'Apply'
  5. See error

Expected behavior It should be possible to update unsaved SearchFields of new ImportConfigurations without an error.

Screenshots https://user-images.githubusercontent.com/19183925/197975286-2763c938-8934-4149-b9bf-0051b3b9e974.mp4

Release 3.4.4-SNAPSHOT (commit 5b175a6)

solth avatar Oct 26 '22 08:10 solth