-
Type:
Bug
-
Resolution: Fixed
-
Affects Version/s: None
-
Component/s: file format settings
-
Critical
-
None
-
-
None
-
Emptyshow more show less
PROBLEM
The import of a basic CSV file (UTF-8 encoded, comma-seperated), content:
id,source,target test,test,test
does not work with our default file-format-settings (where OKAPI with okf_multiparser Filter is used), which results in a "Okapi Plug-In: Error in converting file "test.csv" on import: HTTP Status was not 200/201/401 body: org/apache/commons/io/input/UnsynchronizedBufferedReader". It also fails when using the internal CSV fileparser (config "runtimeOptions.import.fileparser.csv.active") and produces an "In application.ini configured column-header(s) 'id' not found in CSV: 'test.csv'" error despite there is such column.
SOLUTION
- for OKAPI: Make okf_table the default for CSV parsing
- for internal-parser: Fix parser to properly handle BOMs
FRONTEND-TESTS
- Import CSV files with and without having runtimeOptions.import.fileparser.csv.active active
- Import the attached CSV with BOM both ways