huridocs / uwazi

Uwazi is a web-based, open-source solution for building and sharing document collections
http://www.uwazi.io
MIT License
239 stars 79 forks source link

Problems when importing a thesaurus from CSV file #6959

Closed salvalacruz closed 1 month ago

salvalacruz commented 3 months ago

Describe the bug The system throws an error if you create a thesaurus and immediately try to import a CSV file.

To Reproduce Steps to reproduce the behavior:

  1. Go to '/settings/thesauri'.
  2. Click on 'Add thesurus'
  3. Type a thesaurus name
  4. Click on 'Import', select a CSV file properly done. Thesaurus Test.csv
  5. Then you get the list of items: image
  6. Click on 'Save'.
  7. you get an error: image
  8. However, if you come back to '/settings/thesauri' and edit the just created thesaurus again, the imported list is available.

Expected behavior Errors should not appear, if the CSV file is properly imported.

Device (please select all that apply)

Browser Brave

RafaPolit commented 3 months ago

While doing this, please check if any of the issues in #6699 can be fixed or are already done. Thanks.