Univention Bugzilla – Bug 53632
CLI import with more than one --set output: arguments handle only last one
Last modified: 2023-05-05 12:04:47 CEST
If you set two --set output arguments at a command line import only the last output argument will processed. It looks like output will be parsed as a string, so only the last specification will be stored and handled. Command: /usr/share/ucs-school-import/scripts/ucs-school-user-import -c /var/lib/ucs-school-import/configs/test_student.json -i source.csv --set logfile=/data/01/tmp/test/import/2021/08/logfile.log output:user_import_summary="/data/01/tmp/test/import/2021/08/summary.csv" output:new_user_passwords="/data/01/tmp/test/import/2021/08/passwd.csv" school=test source_uid=test-student dry_run=true Logfile: 2021-08-05 14:41:51 INFO cmdline.prepare_import:214 Using command line arguments: {'school': 'test', 'source_uid': 'test-student', 'dry_run': True, 'output': {'new_user_passwords': '/data/01/tmp/test/import/2021/08/passwd.csv'}, 'input': {'filename': 'source.csv'}, 'logfile': '/data/01/tmp/test/import/2021/08/logfile.log'} Complete Logfile and configfile is attached in ticket.
Fixed in: ``` Package: ucs-school-import Version: 18.0.30A~5.0.0.202303091544 Branch: ucs_5.0-0 Scope: ucs-school-5.0 Package: ucs-test-ucsschool Version: 7.3.116A~5.0.0.202303131458 Branch: ucs_5.0-0 Scope: ucs-school-5.0 ``` Not released yet.
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.