Univention Bugzilla – Bug 56041
CLI import with more than one --set csv: arguments handle only last one
Last modified: 2023-05-25 14:11:25 CEST
+++ This bug was initially created as a clone of Bug #53632 +++ If you set two --set csv arguments at a command line import only the last one will processed. It looks like output will be parsed as a string, so only the last specification will be stored and handled. This is the same that happened in #53632 but with `csv` instead of output. Replication steps: source.csv ``` "firstname", "lastname", "name", "record_uid", "school" "test", "test", "test", "test", "test" ``` command ``` /usr/share/ucs-school-import/scripts/ucs-school-user-import -i source.csv --set source_uid=importer user_role=teacher csv:mapping:school=school csv:mapping:record_uid=record_uid csv:mapping:firstname=firstname csv:mapping:lastname=lastname csv:mapping:name=name -s test ``` output ``` ... 'csv': {'allowed_missing_columns': [], 'header_lines': 1, 'incell-delimiter': {'default': ','}, 'mapping': {'name': 'name'}}, ...
Has been fixed with: Package: ucs-school-import Version: 18.0.32 Commit d76523a8ee20541a9570ff88875e31440bae2670
Errata updates for UCS@school 5.0 v3 have been released. https://docs.software-univention.de/ucsschool-changelog/5.0v3/de/changelog.html If this error occurs again, please clone this bug.